Question

gmail block email from postfix installed in droplet

Posted July 13, 2021 59 views
EmailDigitalOcean Droplets

The IP you’re using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn more at 550 5.7.1 https://support.google.com/mail/?p=NotAuthorizedError n16si15152994qtx.119 - gsmtp (in reply to end of DATA command))

This is message returned when email is sent to gmail through postfix installed in the droplet.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Hi @ykotlar,

It seems like you need to improve your E-mail score.

First, how are you sending e-mails? Are you using SMTP authentication and which port are you using?

Additionally, I’ll recommend using an e-mail checker to see what e-mail score you’ll get. The link is here - https://www.mail-tester.com/. The way it works is you send a message to the given e-mail account and check the score of your message. It will provide you with a scale from 1 to 10 and notify you about any issues you might need to fix.

Try it out and see if making a 10/10 score on the tester will help out.

One other thing, you know content does matter and it’s possibly Gmail are marking your messages based on it as well.

And lastly, I have seen adding SPF and DKIM records solves such a problem. Also, make sure that you have added <> around From and Reply to addresses so that Gmail server considers it has genuine email (not spam).

If it doesn’t work then you might have to reach out to support with email bounce back (if any) or with any information to trace the issue.

Regards,
KFSys

Hello, @ykotlar

The error message is explained here:

https://support.google.com/mail/answer/10336

You can check if the IP address is present in the Spamhaus database

http://www.spamhaus.org/lookup/

If the IP address is listed then you can try to request a removal which will improve the score of your outgoing emails.

You can also add SPF and DKIM records to additionally improve the score of your emails:

https://www.digitalocean.com/community/tutorials/how-to-create-a-spf-record-for-your-domain-with-google-apps

Hope that this helps!
Regards,
Alex

by Keshav Pareek
Here we'll show you how to create a SPF record for your domain with Google Apps.