Share via


Remove Internal Exchange Server2016 Names and IP Addresses from Message Headers

Question

Tuesday, September 5, 2017 4:36 AM

Dear MS Technical,

I have a system mail Exchange 2016. When I send mail from local to internet display information server local, ip header,..

Now I want to know how to hide or remove  the server name on the header of the email going outside the agency, I want to hide banner from telnet server mail port 25. Because System mail neet to secure spam and virus

Thanks

All replies (4)

Tuesday, September 5, 2017 6:45 AM ✅Answered | 2 votes

Hi Phuong

If you are using Hub Transport server directly connected to the Internet, use following command

Get-SendConnector "Connector Name" | Remove-ADPermission -User "NT AUTHORITY\Anonymous Logon" -ExtendedRights ms-Exch-Send-Headers-Routing

For Edge Server, use cmdlet:

Get-SendConnector "Connector Name" | Remove-ADPermission -User "MS Exchange\Edge Transport Servers" -ExtendedRights ms-Exch-Send-Headers-Routing.

Also you can do that through Header firewall : https://technet.microsoft.com/en-us/library/bb232136(v=exchg.150).aspx

Regards,

Raj

__________________________________________________________________________

Please mark as "Answer" & and do "Vote" if my contribution or answer is useful


Wednesday, October 30, 2019 9:12 AM ✅Answered

Hello Phuong

Get-SendConnector

Below command to remove the message headers :
Get-SendConnector "outgoing" | Remove-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights ms-Exch-Send-Headers-Routing

Regards

Bhupen


Tuesday, September 5, 2017 6:15 AM | 2 votes

You can build your own SMTP Gateway using Postfix and installing software like Spam Assassin, ClamAV etc... use or secure email gateway appliance.... You can also setup SMTP gateway using Windows IIS server see the following links;

https://community.spiceworks.com/how_to/78873-so-you-need-to-setup-a-smtp-relay-in-windows-2012-r2-iis-6

http://kb.eclipseinc.com/kb/how-to-configure-iis-smtp-server-to-forward-emails-using-email-account/


Wednesday, October 30, 2019 8:34 AM

Also google for HeaderRewriter add-on for Exchange server.