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: 84EA7FCF22: firstname.lastname@example.org, relay=gmail-smtp-in.l.google.com[188.8.131.52]:25, delay=0.26, delays=0.01/0.02/0.13/0.1, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[184.108.40.206] said: 550-5.7.1 [220.127.116.11 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 https://support.google.com/mail/?p=UnsolicitedMessageError 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.
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.×