For different reasons I use a lot of alias email addresses. But do they really work like I think they should?
Let’s say I have my main email account called “email@example.com”. For this address I have multiple email aliases like “firstname.lastname@example.org”, “email@example.com” or even “firstname.lastname@example.org”.
To handle those on the client side I use Mozilla Thunderbird. All the email aliases (except the main address “email@example.com” of course) are setup as identities via Edit/Account Settingsfirstname.lastname@example.org/Manage Identities. This way I can send and receive emails for “email@example.com”, “firstname.lastname@example.org”, “email@example.com” or “firstname.lastname@example.org” (when writing an email just choose the right identity in the from field) with only one real email account. All these alias email addresses appear discrete for recipients.
So far so good, works like a charm.
BUT having a closer look at the header generated when we send an email from e.g. “email@example.com” to “firstname.lastname@example.org” we see something like this:
Return-Path: <email@example.com> Received: from mailin60.aul.receiving-domain.com ([xxx.xxx.xxx.xxx]) by ehead902.aul.receiving-domain.com (Dovecot) with LMTP id M+LMKqUu8FU15gAAUDv/bw; Wed, 09 Sep 2015 15:05:56 +0200 Received: from mail.my-domain.com ([xxx.xxx.xxx.xxx]) by mailin60.aul.receiving-domain.com with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1ZZf4W-0ky3vc0; Wed, 9 Sep 2015 15:05:56 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.my-domain.com (Postfix) with ESMTP id A07D232326E for <firstname.lastname@example.org>; Wed, 9 Sep 2015 15:05:55 +0200 (CEST) Received: from mail.my-domain.com ([127.0.0.1]) by localhost (mail.my-domain.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8McLKEgykSSF for <email@example.com>; Wed, 9 Sep 2015 15:05:54 +0200 (CEST) Received: from [xxx.xxx.xxx.xxx] (f055219075.isp.com [xxx.xxx.xxx.xxx]) (Authenticated sender: firstname.lastname@example.org) by mail.my-domain.com (Postfix) with ESMTPSA id 4BDCA32326B for <email@example.com>; Wed, 9 Sep 2015 15:05:54 +0200 (CEST) To: firstname.lastname@example.org From: "Postmaster nerd-quickies.net" <email@example.com> Subject: TestB Message-ID: <55F02EB1.firstname.lastname@example.org> Date: Wed, 9 Sep 2015 15:05:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit
Normally I use alias email addresses to protect my main address from spam or to create the illusion that I send an email from a separate, discrete email account. So what I don’t want is, that my main email address is exposed to the public like it is in line 16 of the above header listing.
How do we get rid of this header line?
If you have your own postfix server it’s a very easy task.
Just open your
/etc/postfix/main.cf and find this line:
smtpd_sasl_authenticated_header = yes
Change this to
smtpd_sasl_authenticated_header = no
, do a reload
and you are done. The “Authenticated sender line” will be suppressed completely from now on.