I’ve installed Discourse on a VPS running cPanel. Forum site seem to work properly but all emails sent by it gets rejected and not delivered by the default mail server of cPanel. The following is a screen capture of delivery report (from cPanel WHM) of Discourse generated email:
The configuration is typical and I can’t spot any problem there:
DISCOURSE_DEVELOPER_EMAILS: 'XXXXX@YYYYYYY.com' DISCOURSE_SMTP_ADDRESS: smtp.YYYYYYY.com DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: XXXXX@YYYYYYY.com DISCOURSE_SMTP_PASSWORD: qwertyui DISCOURSE_SMTP_ENABLE_START_TLS: false
/var/discourse/shared/standalone/log/rails/production.log shows no errors when sending email:
Sent mail to XXXXX@YYYYYYY.com (947.2ms)
I’ve also tested how wrong password would look like (just to exclude that possibility):
Sent mail to XXXXX@YYYYYYY.com (2130.2ms) Job exception: 535 Incorrect authentication data
So the only problem is the rejection of the message in email server side. Any ideas what could cause this? The SMTP of my VPS works very well with exact same settings when I’m sending mail with Thunderbird.