Google blocking mails sent from my server

Posted July 20, 2014 12.5k views

I get the following message when I tried to send a mail.

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
    for 550 5.7.1 more information. sc7si12058958pac.156 - gsmtp (in reply to
    end of DATA command)

I’m not sure how to resolve this. Anyone has experience with this?

Using Ubuntu 14.04, Postfix, PHP to send mails.
Followed the tutorial How To Install and Setup Postfix on Ubuntu 14.04.

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

You need to make sure that an MX record for your domain is pointing to the server you are sending the mails from.

In case you send the mails from, then make sure to add an MX record to that points to your server’s IP address (either directly or through a valid hostname).