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
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=“https://www.digitalocean.com/community/questions/email-sent-to-gmail-is-flagged-as-spam”>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=“http://mandrillapp.com”>mandrillapp.com</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 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>
Did you restart apache2? <pre>sudo service apache2 restart</pre>