In a discussion titled “Using Postfix with Discourse” under the Self-hosting support category, cmoi reports successfully installing Postfix alongside Discourse but facing email delivery issues, particularly with admin activation. Despite configuring Postfix and Discourse’s SMTP settings, emails fail to send. RGJ clarifies that Postfix and Discourse are compatible and suggests a configuration error, urging cmoi to detail the exact problem. cmoi later asks where Discourse logs mail activity and eventually switches to Amazon SES. Separately, discourse_altha encounters similar issues with a Bitnami Discourse container using SendGrid, receiving a generic “problem sending test email” error despite correct SMTP settings. pfaffman recommends following the official Discourse installation guide and checking if port 465 is blocked, suggesting trying port 2525. Other users, like tobiaseigen, recommend third-party SMTP services such as Mandrill or Mailgun for reliability. The thread highlights common SMTP configuration pitfalls and the value of using external email services or verifying system-level network restrictions.
Running into a similar issue with a Bitnami docker container of Discourse. The emails just aren’t sending.
Here is the error I’m getting: There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again.
Here are my SMTP settings:
Delivery Method
address
smtp.sengrid.net
port
465
user_name
apikey
authentication
login
enable_starttls_auto
true
Any guidance on where I need to look/troubleshoot next?
Edit: Have tried 587, plain authentication method, different apikey/password. Have setup this on other apps no problem with similar settings.
Expected outcome is for the email to send from Discourse to the inbox of the test account.