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

Posted December 13, 2013 5k views
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]) >

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
4 answers
Did you restart apache2?
sudo service apache2 restart
Yes i did it, restarted, trying two new user registration, but all the notification email headers in and still the same:

Received: by [notmydropletip] with SMTP id xxxxxx
X-Received: by [notmydropletip] with SMTP id xxxxxx
Received-SPF: neutral ...
Received: from localhost ([]) by with ESMTPSA id xxxxxx
Subject: [] New User Registration

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 (edit msmtp's config to match your mandrill account's SMTP credentials).
I wonder if this issue is tangentially-related (i.e. the /etc/hosts file) to the problem being addressed, here: Email sent to gmail is flagged as spam?