Internal smtp IP address show in email header Exchange server 2016

Ebrahim 1 Reputation point
2022-03-30T17:24:25.51+00:00

Hi,

Even after running the following command, the email header still shows the smtp ip address and server name "see attached pic":

  1. Remove headers
    Get-SendConnector | Where-Object {$_.Enabled -eq $true} | Remove-ADPermission –User 'Nt Authority\Anonymous Logon' –ExtendedRights 'ms-Exch-Send-Headers-Routing'
  2. Restart IIS and Microsoft Exchange Transport Services

    iireset
    Restart-Service MSExchangeTransport

188430-smtp-ip-and-name.jpg

Any solution, thanks in advance.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,640 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Ebrahim 1 Reputation point
    2022-03-31T13:45:47.24+00:00

    Thanks a lot for your replay @KyleXu-MSFT , I understood. But why still show my exchange inside ip address. As I state earlier that I have already execute the command, but no hop.

    0 comments No comments

  2. Andy David - MVP 148.4K Reputation points MVP
    2022-03-31T14:47:37.913+00:00

    If your Exchange Server sends mail directly to the internet, then you can't hide the internal IP Address.
    If you want to hide it, then it needs to be smarthosted outbound through another server like an Edge Role server or other SMTP gateway

    0 comments No comments

  3. KyleXu-MSFT 26,261 Reputation points
    2022-04-01T09:05:22.707+00:00

    @Ebrahim

    Here is an example for you:

    Before removing:
    188980-qa-kyle-16-37-37.png
    After removing:
    189101-qa-kyle-16-38-05.png

    The last hop which communicates with the Internet will be recorded, so, if you want to protect your Exchange server IP. It is suggested to use an Edge server to deliver email to the Internet.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

  4. Ebrahim 1 Reputation point
    2022-04-04T06:31:31.09+00:00

    Thanks for your replays @Andy David - MVP & @KyleXu-MSFT , but our Exchange server is not sending email directly! We have SMTP server in DMZ after exchange server.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.