+1 vote

Hi! Please advise to me how to make it so that the headers do not display my local ip

Received: from [192.168.1.51] ([151.227.124.130]) 
 by mwinf23slfj4 with ME id ztL41x00K2ovHSn03tL58l11; 
 Sun, 17 Jun 2018 19:20:14 +0200
X-ME-Helo: [192.168.1.51]

Thanks

by (660 points)
edited by

1 Answer

+1 vote
 
Best answer

Received headers are added by SMTP servers during message transport.

You can only configure what Mail.dll sends in EHLO/HELO when it connects to SMTP server: SmtpConfiguration.CustomHost:

using (Smtp client = new Smtp())
{
    client.Configuration.CustomHost = "ENTER_HOST_NAME_HERE";
    client.Connect(_server);

    // ...

    client.Close();
}
by (301k points)
selected by
...