Exchange – remove server info from header

Problem
Local server information is sent from your server when sending an email. Important info has been masked in the info below.

Delivered-To: [email protected]
Received: by 10.103.1.130 with SMTP id 00000000000;
Fri, 17 Jun 2016 09:47:11 -0700 (PDT)
X-Received: by 10.55.101.68 with SMTP id z65mr3603660qkb.80.1466182031793;
Fri, 17 Jun 2016 09:47:11 -0700 (PDT)
Return-Path: <[email protected]>
Received: from ExchSRV-01.customerdomain.local ([507.519.566.534])
by mx.google.com with ESMTPS id 68si24138263qgn.99.2016.06.17.09.47.11
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Fri, 17 Jun 2016 09:47:11 -0700 (PDT)
Received-SPF: fail (google.com: domain of [email protected] does not designate 507.519.566.534 as permitted sender) client-ip=507.519.566.534;
Authentication-Results: mx.google.com;
spf=fail (google.com: domain of [email protected] does not designate 507.519.566.534 as permitted sender) [email protected]
Received: from ExchSRV-01.customerdomain.local (172.16.0.14) by
ExchSRV-01.customerdomain.local (172.16.0.14) with Microsoft SMTP
Server (TLS) id 51.1.596.30; Fri, 17 Jun 2016 12:46:40 -0400
Received: from ExchSRV-01.customerdomain.local
([Gf80::f4f0:e3e3:eec9:ecfd]) by ExchSRV-01.customerdomain.local
([Gf80::f4f0:e3e3:eec9:ecfd]) with mapi id 51.1.596.30; Fri, 17 Jun
2016 12:46:40 -0400
From: Support <[email protected]>
To: “[email protected]” <[email protected]>
Subject: Test Email

 

Solution

From exchange powershell run the following commands:

Remove-ADPermission –id “EXTERNAL-CONNECTOR-NAME” -AccessRight ExtendedRight -ExtendedRights “ms-Exch-Send-Headers-Routing” -user “NT AUTHORITY\Anonymous Logon”

Set-SendConnector -id “EXTERNAL-CONNECOR-NAME” -FQDN:mail.mydomain.com

Result
Delivered-To: [email protected]
Received: by 10.103.1.130 with SMTP id 00000000;
Fri, 17 Jun 2016 10:16:30 -0700 (PDT)
X-Received: by 10.200.55.146 with SMTP id d18mr3738534qtc.19.1466183790246;
Fri, 17 Jun 2016 10:16:30 -0700 (PDT)
Return-Path: <[email protected]>
Received: from mail.customerdomain.com ([507.519.566.534])
by mx.google.com with ESMTPS id c8si5568173qgf.84.2016.06.17.10.16.30
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Fri, 17 Jun 2016 10:16:30 -0700 (PDT)
Received-SPF: fail (google.com: domain of [email protected] does not designate 507.519.566.534 as permitted sender) client-ip=507.519.566.534;
Authentication-Results: mx.google.com;
spf=fail (google.com: domain of [email protected] does not designate 507.519.566.534 as permitted sender) [email protected]
From: Support <[email protected]>
To: “[email protected]” <[email protected]>
Subject: Test 3

Tested Platform
MS Windows 2012 R2
MS Exchange 2016

Hits: 413

Leave a Reply