Postfix gets email kicked back from external email servers

I’ve configured postfix on my Ubuntu 16.04 server that is running a LEMP stack. My websites are sending the email to the postfix daemon which is attempting to deliver to the remote servers.

My /var/log/mail.log is full of entries like this:

Dec 31 01:42:53 web02 postfix/smtp[2465]: 84EA7FCF22:,[]:25, delay=0.26, delays=0.01/0.02/0.13/0.1, dsn=5.7.1, status=bounced (host[] said: 550-5.7.1 [ 12] Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 550 5.7.1 for more information. e2si35713566qta.253 - gsmtp (in reply to end of DATA command))

Emails are not being delivered to website users.

The postfix is set to use the hostname of the server, which differs from the domains of the websites. All the websites on this server are affected. The public DNS system points the hostname of the server to the IP address of the server. The link in the log entry is useless… not aimed at server admins at all.

Any help would be much appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Is your mail server in an RBL?

What address are the emails being sent from? as 550 5.7.1 can be relay denied.

Considering the error is thrown after the end of the data command, the content of this mail be be seen as legitimate spam by gmail.

I would recommend testing the SMTP transaction using telnet and the exact from address used by your server.

Regarrrrrrrrrds, pyrate ;0