This is for an initial install, and I’m not a DNS guru by any means! Here’s where I’m at:
- Outbound email tests are working fine. I’m using MailGun with their recommended “mg” subdomain. I’m sending on port 2525. I do have the MailGun API for webhooks entered in that respective field, in settings (they have THREE API’s–is this the right one??). I also have MX records for the mg subdomain entered in my DNS settings. Mailgun validation check says all is working properly, as does mail-tester.com.
- Inbound is configured with a subdomain called “inbound.” If I send an email from a gmail account to fake@inbound.[mydomain].org, I can see that email arrive in the mail-receiver log. If I send, from Discourse, a test email to that same address via Settings > Email, the email seems to disappear–noting shows up in the Rejected bin. I am using Straightforward direct-delivery incoming mail for the rest.
Due to other self-inflicted snafu in the setup process, I opted to begin from a clean slate: I deleted my droplet, reinstalled Discourse and am starting all over again. I did not however delete the MailGun account and am actually using the same API webhook as before. Could this be the problem? I am however using a new Discourse-produced API key (the old one, obviously, was vaporized when I deleted the droplet).
The only other think I can think of, is the endpoint in mail-receiver.yml. Mine looks like this: DISCOURSE_MAIL_ENDPOINT: 'https://inbound.[mydomain].org/admin/email/handle_mail'
Any thoughts on where the hangup is? (The icing on the cake is that I had it all working at one point not long ago—before I deleted the droplet. I’m a slow learner, apparently ). Thanks all!