Answer the question
In order to leave comments, you need to log in
Postfix + Amavisd how to remove 'received' headers in outgoing mail only?
Greetings,
Through the "smtp_header_checks" directive in the Postfix config, the extra "received" headers revealing the client's internal ip, the "received: from localhost" headers, and so on are removed. Everything would be great if it weren’t for amavisd-new, which receives mail on port 10024 and sends it back to Postfix on port 10025, while the headers are also removed, BUT also for incoming messages, which is not good to say the least. Without amavisd it will work as it should, but it's not an option to stop using it. How can I tell Postfix to only remove the headers from outgoing messages, while leaving the full headers for incoming messages?
The contents of the file with checks "smtp_header_checks"
/^Received: from 127.0.0.1/ IGNORE
/^Received:/ IGNORE
/^User-Agent:/ IGNORE
/^X-Mailer:/ IGNORE
/^X-Originating-IP:/ IGNORE
/^Thread-Index:/ IGNORE
/^Received: from localhost/ IGNORE
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question