Hiding Private IP from Email Headers in Thunderbird

Posted on In QA

It seems Thunderbird sends out my private/lan IP to the SMTP server. For example, in an Email sent out by Thunderbird, the header contains

Received: from [192.168.1.2] (example.com [1.2.3.4])
	by mail.example.com (Postfix) with ESMTPSA id 92CD297DEA;

It is fine that the SMTP server records the public IP (1.2.3.4) as it is what it sees. But I believe only Thunderbird can get my lan IP (192.168.1.2 here, as the SMTP server on the Internet can’t find that) and it sent the info to the SMTP server.

How to make Thunderbird hide the lan IP in the header of emails sent out?

The private IP (lan IP) is likely the Extended HELLO (EHLO) or HELLO (HELO).

You can change the HELO message:

Go to Thunderbird’s about:config page (in Preferences > Advanced > General > Config Editor).

Find the mail.smtpserver.default.hello_argument preference (create it by right-clicking > New > String if it doesn’t exist yet).

Enter localhost as its value. Then that field in the Email header will contains localhost instead of your private IP.

thunderbird hello argument config

One example for your reference:

Received: from localhost (example.com [1.3.3.2])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: ...)
	by ....com (Postfix) with ESMTPSA id 36C...;
	Wed,  3 Jan 2018 18:22:39 -0800 (PST)

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

One comment

  1. Send an e-mail to your other e-mail address before and after change and compare headers (source code) of the received e-mail, especially SPAMAssasin X-SPAM like lines to see if you have not increased your mail SPAM score by that action.

    Other option is to just use custom proxy for thunderbird. (check thunderbird settings, proxy)

Leave a Reply

Your email address will not be published. Required fields are marked *