Discourse Bitnami Stack email SMTP configration

  1. Download and run Discourse Bitnami Stack VM
  2. Follow Bitnami Config Docs
    1
    2
    3
    4
    5
    6
    7
    smtp_address = "smtp.gmail.com"
    smtp_port = 587
    smtp_domain = example.com
    smtp_user_name = 'USERNAME@gmail.com'
    smtp_password = 'PASSWORD'
    smtp_enable_start_tls = true
    smtp_authentication = login
  3. Make sure Discourse’s notification email setting is same as smtp_user_name, otherwise:
1
2
554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; 
Failed to process message due to a permanent exception with message Cannot submit message.

That’s it.

Reference from:

  1. Bitnami Config Docs
  2. Troubleshooting email on a new Discourse install
  3. SMTP Sender Address Issue