gmail block email from postfix installed in droplet

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 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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello, @ykotlar

The error message is explained here:

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

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:

Hope that this helps! Regards, Alex

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 - 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