The user Jack_Spangenberg is experiencing issues sending mail on a Discourse installation on a DigitalOcean 16.04 droplet using NameCheap’s private email server. Despite the Discourse log showing ‘Mail Sent’, emails are not being delivered. Initial attempts to use port 2525 failed due to connection refusal, and port 587 works but may be blocked by DigitalOcean. The user also encountered Redis connection errors in the logs, which may be unrelated. After trying a configuration guide, the user received four duplicate emails, possibly from previous attempts. pfaffman suggests checking the remote mail server logs or spam folder, as the mail is being accepted but not delivered.
I’ve been looking for the answer all day, nothing.
I’m doing a fresh install via the first rails app guide on github.
Using a 1GB DigitalOcean droplet
Using NameCheap’s private email server.
Here is my app.yml:
DISCOURSE_HOSTNAME: smocks.me
## Uncomment if you want the container to be started with the same
## hostname (-h option) as specified above (default "$hostname-$config")
#DOCKER_USE_HOSTNAME: true
## TODO: List of comma delimited emails that will be made admin and developer
## on initial signup example 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: '*****@gmail.com'
## TODO: The SMTP mail server used to validate new accounts and send notifications
# SMTP ADDRESS, username, and password are required
# WARNING the char '#' in SMTP password can cause problems!
DISCOURSE_SMTP_ADDRESS: mail.privateemail.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: admin@***.me
DISCOURSE_SMTP_PASSWORD: "*****"
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
Would appreciate any help on this.
P.S. I ran the more command on my Discourse log, it says Mail Sent!
Can you telnet to port 587 of mail.privateemail.com? If not, you’ll need to open a ticket with Digital OCean to get them to unblock the port, or get mail.privateemail.com to accept connections at port 2525.