Report this

What is the reason for this report?

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

Posted on 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])

https://www.digitalocean.com/community/articles/how-to-use-gmail-or-yahoo-with-php-mail-function



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.

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

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

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=“http://mandrillapp.com”>mandrillapp.com</a> (edit msmtp’s config to match your mandrill account’s SMTP credentials).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.