We’re using DigitalOcean for our discourse community and mailgun as mail server on community.biafland.com
. Everything is configured correctly and after testing the email on mail-tester.com we got 10/10 result. But the problem is all the registration and test emails are going to spam folder. After troubleshooting everything we don’t have any idea what’s causing the issue and we did all whatever we can do.
First thing to check is the reputation of IP address that mailgun assigned you.
If that is all good then you may consider revisiting your DNS records.
I tried registering with a mail-tester.com email to test. Here are the results and they don’t look good!
Spam Test Result
More suspicion! Your sender address is a Gmail address and I remember you said you’re using mailgun! why are you sending mails from gmail address? that’ll never work and it’s against the gmail policies.
Yeah, while testing I changed the contact and notification email to a gmail ID but its now changed to noreply@community.biafland.com
. That’s why you got a worst result. But earlier I got 10/10 using the email noreply@community.biafland.com
. Checkout the results here now https://www.mail-tester.com/test-rgwxx.
And here’s the IP reputation check result: https://www.talosintelligence.com/reputation_center/lookup?search=209.61.151.224
Try contacting mailgun support for delivery issues.
Also, You can consider https://gmail.com/postmaster
Good work being thorough with mail-tester which is a great service.
However, did you check the IP address that the mail is being sent from? That is, mailgun’s provided IP?
Yes, following @itsbhanusharma recommendation I’ve checked IP reputation of the mailgun IP and here’s the report: https://www.talosintelligence.com/reputation_center/lookup?search=209.61.151.224.
You are right that looks clean.
If you’ve ruled out the mail sending IP, and mail-tester is also showing 10/10 …
The only answer at this point is your domain name has somehow been flagged as spam, because that’s the only unique content in the emails.
@codinghorror Any recommendation to get rid of unflagging the domain and how to check it? Also, one of the user was able to receive registration confirmation email through gmail ID. May be somehow I’m getting all emails to spam due to my IP issue? Can you try registering from your end using a gmail ID and check if its working there?
I did already. Here’s what Mailgun support replied finally.
Unfortunately, Mailgun cannot troubleshoot email delivery once Mailgun has successfully delivered the messages to the recipient email server. Whenever a “delivered” event occurs in the logs, this means that the recipient server has accepted the message from Mailgun and returned a “Success” message back to Mailgun. Therefore, we are unable to track what happens to a message once we hand the message off and receive this response.
You will need to follow up with Google, unfortunately… good luck with that.
It might be easier to change your domain name, to be honest.
Its a bad news Are you sure there’s no issues with DigitalOcean and MailGun?
Can you find the mail headers at gmail and try to find out what is the reason for the mail being marked as spam?
original_msg.txt (60.6 KB)
Here’s the original message so you can have a look. I’m not sure what to check on header to find out an issue.
I just did a test here: https://app.glockapps.com and found mailgun is the reason for why email is going to spam. It shows sendgrid emails sent directly to inbox to 4 major emails like gmail, outlook, yahoo, office 365, hotmail and amazon workmail.
Do you guys suggest to test with sendgrid?
Excellent research. Switching mail services is probably easier than switching your domain name, but we have used Mailgun in the past without deliverability issues, so this is not a systemic problem that I’m aware of.
Thank you! I understand Mailgun is reputed and I’ve been trying to stick with them. What could be the reason of this issue? Is that can be solved with a dedicated IP on Mailgun?
I don’t personally think the situation is as extreme as getting to buy a dedicated IP. maybe try asking them to just assign you to a different IP (I really doubt that’d help as sending IP’s reputation is fine. )
Thanks to you guys for helping me out. Finally, we solved the email delivery with Sparkpost and removed Mailgun
Did you look at the header of an email that went to spam?
Mailgun won’t have been the issue and it’s impossible to look at your configuration to find where it was breaking down now that you’ve moved, but the header should include the proverbial smoking gun.
Actually, I don’t know what was the issue with Mailgun configuration and but I did everything right and got 10/10 score on mail-tester.com. You can check the current email header and I’ve uploaded earlier mailgun email header on this thread to compare: Registration and Test Emails constantly going to Spam via Mailgun
If you can help me to figure out then it will be a experiment to me and all others to get the right place fixing the header or other configuration.