How to hide my DO ip address in received gmail headers?

  • Posted December 13, 2013

Hi…i’m using msmtp sendmail service, How to hide my DO ip address in received gmail headers? Thanks!

Received: from localhost ([my DO ipaddress])


Submit an 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.

I wonder if this issue is tangentially-related (i.e. the <code>/etc/hosts</code> file) to the problem being addressed, here: <a href=“”>Email sent to gmail is flagged as spam</a>?

I don’t think there is any way to hide it since Gmail passes it over. You can try using a SMTP service such as <a href=“”></a> (edit msmtp’s config to match your mandrill account’s SMTP credentials).

Yes i did it, restarted, trying two new user registration, but all the notification email headers in and still the same: <br> <br>Delivered-To: <br>Received: by [notmydropletip] with SMTP id xxxxxx <br>X-Received: by [notmydropletip] with SMTP id xxxxxx <br>Return-Path: <br>Received-SPF: neutral … <br>Authentication-Results:… <br>Received: from localhost ([]) <-my DO ip address <br> by with ESMTPSA id xxxxxx <br>To: <br>Subject: [] New User Registration <br> <br>

Did you restart apache2? <pre>sudo service apache2 restart</pre>