Any one the settings to remove hostname and IP address in mail headers sent from Postfix mail server.

Tried, myhostname=domain.com in main.cf but now working as expected.

Any config pls share

Regards Siva

link|improve this question

0% accept rate
feedback

1 Answer

Do you mean that you want to amend or remove the Received: entry placed into an email header by your mail server? If so, note that section 4.4 of RFC 2821 says clearly that

An Internet mail program MUST NOT change a Received: line that was previously added to the message header. SMTP servers MUST prepend Received lines to messages

and moreover that your Received: line

SHOULD contain both (1) the name of the source host as presented in the EHLO command and (2) an address literal containing the IP address of the source, determined from the TCP connection.

In other words, what you ask is an RFC violation. Don't do it, no matter who else thinks it's a good idea.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.