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 “firstname.lastname@example.org”. For this address I have multiple email aliases like “email@example.com”, “firstname.lastname@example.org” or even “email@example.com”.
To handle those on the client side I use Mozilla Thunderbird. All the email aliases (except the main address “firstname.lastname@example.org” of course) are setup as identities via Edit/Account Settingsemail@example.com/Manage Identities. This way I can send and receive emails for “firstname.lastname@example.org”, “email@example.com”, “firstname.lastname@example.org” or “email@example.com” (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. “firstname.lastname@example.org” to “email@example.com” we see something like this:
Return-Path: <firstname.lastname@example.org> 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 <email@example.com>; 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 <firstname.lastname@example.org>; Wed, 9 Sep 2015 15:05:54 +0200 (CEST) Received: from [xxx.xxx.xxx.xxx] (f055219075.isp.com [xxx.xxx.xxx.xxx]) (Authenticated sender: email@example.com) by mail.my-domain.com (Postfix) with ESMTPSA id 4BDCA32326B for <firstname.lastname@example.org>; Wed, 9 Sep 2015 15:05:54 +0200 (CEST) To: email@example.com From: "Postmaster nerd-quickies.net" <firstname.lastname@example.org> Subject: TestB Message-ID: <55F02EB1.email@example.com> 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.