This is more a quality-of-life feature request than a mission-critical one, but it would have helped me out yesterday:
During initial Discourse setup, when entering the e-mail server details, it would be nice if there was an option to specify the address Discourse uses to send the initial set-up email to the first admin—basically, the “notification email” setting that you can modify post-setup.
Discourse appears to use a generic address like “email@example.com”, which probably works fine for most people, but for strict email installations, attempting to send from this address will generate a rejection from the MTA, like this:
Nov 10 16:32:48 oglethorpe postfix/smtpd: NOQUEUE: reject: RCPT from unknown[redacted]: 553 5.7.1 <firstname.lastname@example.org>: Sender address rejected: not owned by user email@example.com; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<localhost.localdomain>
In a strict email configuration (like mine, with postfix as the MTA) the issue is that the SMTP credentials supplied to discourse for sending email correspond to a single sending account and its sender aliases, and unless you know in advance that you need to add “firstname.lastname@example.org” to your sending account’s sender alias list in
virtual-mailbox-users, you get the above 5xx reject error when discourse sends its first setup email.
The workaround was to add the sender alias and re-send the setup email, so it’s not a critical problem, but it definitely would be nice to have the option to set the setup email’s “from” address in advance—you’re already configuring the email setup anyway, and you could carry that info forward into the post-setup “notification email” setting.