I am having quite the time getting email to work with my new Discourse server.
I am using DigitalOcean to host. There doesn’t seem to be any problem there. The server is running and I’m able to log in.
I am using G Suite as my admin email, but not handling site email.
I am using Namecheap for DNS/regristrar
I am using SendGrid as the SMTP provider for the site. I’ve tried every possible combination of verification I can think of, using the top-level-doman, using the subdomain, removing the domain names SendGrid-provided DNS information to input into Namecheap, adding the domain to a whitelist G-suite (is this even necessary)?
I can get emails to send out. I can see from SendGrid that test emails were sent out from Discourse but they never get delivered. The following information is shown on the error message on SendGrid:
Received by gmail-smtp-in.l.google.com
The gmail server blocked this message from being delivered. While we won’t try to send this message again, we will attempt to send new messages to this address in the future.
You can view all addresses in your [Blocks]
Full response from the gmail server:
550 5.7.1 Unauthenticated email from do.c is not accepted due to domain’s DMARC 5.7.1 policy. Please contact the administrator of do.c domain if this was 5.7.1 a legitimate mail. Please visit 5.7.1 to learn about the 5.7.1 DMARC initiative. m55-v6si4266550qtc.214 - gsmtp
Does this narrow down my problem strictly to SendGrid and domain verification or is it something else? Either way, SendGrid never wants to verify once I’ve pasted the information they’ve provided into my Namecheap DNS section.