Here is mutt setup: I use offlineimap to fetch the mail and use msmtp to send the mail.

My concern is that when using this (msmtp), it appends my IP address in the header in every email that is sent. Since msmtp doesn't support a SOCKS proxy, I can't use a SSH tunnel to my VPS.

Is there anyway I can configure this setup to not reveal my IP address by using some sort of a tunnel to my VPS so that its IP is revealed and not mine? I searched a lot but the closest I could find was a SSH tunnel but I guess that was for the case if I was using mutt's inbuilt SMTP support and not a MTA such as msmtp.

  • Can you include an example of the IP in the header just so everyone knows exactly what you have and what you're trying to remove?
    – slm
    Commented May 12, 2013 at 5:52
  • @slm I have a similar problem, it looks like this: Received: from macos.local ([WW.XXX.YY.ZZ]) which is my external IP address.
    – codepoet
    Commented Jul 19, 2022 at 22:41

1 Answer 1


You can wrap msmtp in tsocks or socksify (from dante-client) to make msmtp use your SOCKS server.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .