Jaroslaw Rafa skrev den 2023-01-12 21:52:
Dnia 12.01.2023 o godz. 13:49:33 post...@ptld.com pisze:
My solution...

main.cf:
    smtp_header_checks = pcre:/etc/postfix/header_checks_smtp


/etc/postfix/header_checks_smtp:
    /^Received:/           IGNORE
    /^X-Originating-Ip:/   IGNORE

If you do it in master.cf for submission services only, it my be OK. But as a general default in main.cf it's definitely wrong. You strip all Received:
headers from all incoming mail, thus you are unable to investigate the
details in case of any mail problems (eg. you are receiving spam or messages
with fake sender address).

smtp_header_checks < is outbound
header_checks < is inbound

Reply via email to