- to remove the header above, you can use header_checks, but you need to
detect which headers to remove (you obviously don't want to remove
headers added by remote systems). with (pcre syntax assumed):
/^Received: \[127\.0\.0\.1\] \(\S+ \S+\)\s+by
mail\.stageline\.hu \(Postfix\) with ESMTPA /
IGNORE
you still run the risk of removing a forged header...
ideally, you should enable the submission service and configure your
mail clients to use the corresponding port (587). then you can have
header_checks that apply only to this service.
Thanks for your reply!
Original Thunderbird added header:
Received: from 127.0.0.1 (87.97.86.176.pool.invitel.hu [87.97.86.176])
by mail.stageline.hu (Postfix) with ESMTPSA id 358E61C3BC49
for<[email protected]>; Mon, 31 May 2010 15:37:26 +0000 (UTC)
/usr/local/etc/postfix/main.cf
header_checks = pcre:$config_directory/header_checks
/usr/local/etc/postfix/header_checks
/^Received: \[127\.0\.0\.1\] \(\S+ \S+\)\s+by
mail\.stageline\.hu \(Postfix\) with ESMTPA /
IGNORE
postfix restart
Header check filter not work. I still receive thunderbird header. Can somebody
fix the perl regexp code?
Thanks!