W
W
Warfare Noise2014-11-27 01:30:33
linux
Warfare Noise, 2014-11-27 01:30:33

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

Immediately the second question in pursuit - what headings can be painlessly removed? Is it necessary to have the "received" field from the source? Many for example also hide the Mime Type. I read that many spam filters look at the header for fields such as message-id and so on, if they are missing, letters are sent to spam. Especially severe in this sense gmail, yahoo.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ShamblerR, 2015-02-25
@ShamblerR

Go gray

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question