Question

Google blocking mails sent from my server

  • Posted on July 20, 2014
  • restingAsked by resting

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

host gmail-smtp-in.l.google.com[74.125.129.27] said:
    550-5.7.1 [128.199.xxx.xxx      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 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131
    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.

Show comments

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.

Want to learn more? Join the DigitalOcean Community!

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.

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 noreply@random-domain.com, then make sure to add an MX record to random-domain.com that points to your server’s IP address (either directly or through a valid hostname).