Make no-reply email address required in install script #546

Closed
opened 2026-04-05 17:18:05 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Copilot on 12/6/2025

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

The install script allowed empty no-reply email during SMTP configuration, causing silent Pangolin service failures at startup.

Changes:

  • Added validation to require no-reply email when SMTP is enabled
  • Enhanced prompt with hint: (often the same as SMTP username)
  • Applied gofmt formatting
// install/main.go
if config.EnableEmail && config.EmailNoReply == "" {
    fmt.Println("Error: No-reply email address is required when email is enabled")
    os.Exit(1)
}

How to test?

Run the installer and enable email configuration. Leave the no-reply email empty - installer will now reject with clear error message instead of creating broken config.

cd install && go build -o installer .
./installer
# When prompted, enable email and leave no-reply empty
# Expected: "Error: No-reply email address is required when email is enabled"
Original prompt

This section details on the original issue you should resolve

<issue_title>Feedback: Install script silently fails on missing no-reply email address</issue_title>
<issue_description>Installing via install script and configuring SMTP, the "no-reply email address" can be left empty. Leaving it empty does however make the pangolin service unhealthy and stops activation of gerbil and traefik services.

The error is displayed in docker compose logs and can be fixed by manually editing the config file. However, as these installation scripts usually are meant to have an easier way than manually doing everything, I would suggest one of the following options:

  • Add hint from install docs to the install script as well: "This is the sender email address that Pangolin will email from. Many times this should be the same as the username."
  • Set default of no-reply email address to be the username</issue_description>

<agent_instructions>edit the go script inside install/main.go to make the no-reply email NOT optional</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@oschwartz10612 Yep this sounds like a simple fix. Will take a look!

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

*Originally created by @Copilot on 12/6/2025* ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description The install script allowed empty no-reply email during SMTP configuration, causing silent Pangolin service failures at startup. **Changes:** - Added validation to require no-reply email when SMTP is enabled - Enhanced prompt with hint: `(often the same as SMTP username)` - Applied gofmt formatting ```go // install/main.go if config.EnableEmail && config.EmailNoReply == "" { fmt.Println("Error: No-reply email address is required when email is enabled") os.Exit(1) } ``` ## How to test? Run the installer and enable email configuration. Leave the no-reply email empty - installer will now reject with clear error message instead of creating broken config. ```bash cd install && go build -o installer . ./installer # When prompted, enable email and leave no-reply empty # Expected: "Error: No-reply email address is required when email is enabled" ``` <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Feedback: Install script silently fails on missing no-reply email address</issue_title> > <issue_description>Installing via install script and configuring SMTP, the "no-reply email address" can be left empty. Leaving it empty does however make the pangolin service unhealthy and stops activation of gerbil and traefik services. > > The error is displayed in docker compose logs and can be fixed by manually editing the config file. However, as these installation scripts usually are meant to have an easier way than manually doing everything, I would suggest one of the following options: > > - Add hint from [install docs](https://docs.fossorial.io/Getting%20Started/quick-install#4-email-configuration) to the install script as well: "This is the sender email address that Pangolin will email from. Many times this should be the same as the username." > - Set default of no-reply email address to be the username</issue_description> > > <agent_instructions>edit the go script inside install/main.go to make the no-reply email NOT optional</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > <comment_new><author>@oschwartz10612</author><body> > Yep this sounds like a simple fix. Will take a look!</body></comment_new> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes fosrl/pangolin#1012 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#546