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: email@example.com, relay=gmail-smtp-in.l.google.com[18.104.22.168]: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[22.214.171.124] said: 550-5.7.1 [126.96.36.199 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.
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!