Mail issues making my head spin

I’ve been fussing around with this for a few days now and I can’t seem to figure out why I’m not able to get mail working. The domain is registered with Namecheap and I pointed it to Cloudflare and then installed discourse on Digital Ocean and am trying to implement Sendgrid.
Containers folder is set up this way

  DISCOURSE_SMTP_ADDRESS: smtp.sendgrid.net
  DISCOURSE_SMTP_PORT: 2525
  DISCOURSE_SMTP_USER_NAME: apikey
  DISCOURSE_SMTP_PASSWORD: "Q0Ou956E" (removed most of the password)
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  LETSENCRYPT_ACCOUNT_EMAIL: matthew@virtusventus.com

I’ve run discourse Doctor and it says that it connects and succeeds… Sendgrid reports dont show the message and I never recieve any email… I’ve been searching tweaking different lines however nothing seems to work…

What am I missing?

That almost certainly means that it was delivered to sendgrid.

My only guess is that you’re logged in to the wrong sendgrid account. You can try using mail-tester.com and see if it gets there.

Another possibility could be a badly configured sender address. Are you sending mail from the same domain as your Discourse hostname? If not, then did you change the notification email address?

1 Like

I’m using a different domain for discourse then what I am for the developer email… and yes I changed the notification address at the end of the containers app to match the email address that I’m using for the developer email

1 Like

Did you rebuilt after the change?

And I’m not exactly an expert with sendgrid but if by developer email you meant something equivalent of a sandbox, one possible reason is that the sandbox only allows sending to verified addresses.

But if that’s not the case, first thing I’d be looking at is sendgrid logs in my account to verify if sendgrid is rejecting my emails for some reason.

yes it has been rebuilt… the ‘Developer email’ is set in Discourse… that what the set up calls ir

Here is the output from Discourse Doctor… but SendGrid doesnt recieve it


==================== MAIL TEST ====================

For a robust test, get an address from http://www.mail-tester.com/

Or just send a test message to yourself.

Email address for mail test? ('n' to skip) [matthew@Virtusventurs.com]: 

Sending mail to matthew@Virtusventurs.com. . . 

Testing sending to matthew@Virtusventurs.com using smtp.sendgrid.net:2525.

SMTP server connection successful.

Sending to matthew@Virtusventurs.com. . . 

Mail accepted by SMTP server.

This line suggests that the mail reached sendgrid so you’ll have to check with them why it isn’t being delivered.

2 Likes

Thanks eveyone… I was able to get it sorted… it was on the send grid side

2 Likes