Question:
When we send email using the .NET Email Component, the Received header indicates an unknown host:
Received: from SERV1 (unknown [123.123.123.123]) by smtp-out.something.com (Postfix) with
ESMTP id 122149AB06F for <somebody @yahoo.com>; Sun, 28 Oct 2007 11:34:11 -0400 (EDT)
</somebody>
We need to add the host name in the code to change from unknown to serv1.something.com.
Answer:
The "Received" header field is not added by Chilkat (nor is it added by any email client). When Chilkat passes the email to an SMTP server (i.e. your SMTP server), it is the server that adds the "Received" header field. If there are multiple hops to the final destination, each mail server will add it’s own "Received" header field.
Therefore, it is not possible for the Chilkat component to modify what the SMTP server is adding.
The solution is to send from a computer having an IP address that the SMTP server can resolve to a hostname. This way, the SMTP server will report the hostname instead of the IP address.