I have been testing smtp_header_checks, without much success.
Setup #1
In /etc/postfix/checks_smtp_headers
In /etc/postfix/main.cf
When I send an email, the message-id header is still present in the headers.
Setup #2
I removed the smtp_header_checks line from main.cf
Instead I added the following in master.cf
Still, no stripping of the message-id header.
Nothing in /var/log/syslog indicates that headerchecks was executed.
Setup #3
I tried the following in master.cf
No more success.
Why is this not working?
Setup #1
In /etc/postfix/checks_smtp_headers
Code:
/^Message-id:/i IGNORE
Code:
# postmap /etc/postfix/checks_smtp_headers
In /etc/postfix/main.cf
Code:
smtp_header_checks=pcre:/etc/postfix/checks_smtp_headers
Code:
# service postfix restart
When I send an email, the message-id header is still present in the headers.
Setup #2
I removed the smtp_header_checks line from main.cf
Instead I added the following in master.cf
Code:
smtp inet n - - - - smtpd
-o smtp_header_checks=pcre:/etc/postfix/checks_smtp_headers
-o syslog_name=headerchecks
Code:
# service postfix restart
Nothing in /var/log/syslog indicates that headerchecks was executed.
Setup #3
I tried the following in master.cf
Code:
submission inet n - - - - smtpd
-o smtp_header_checks=pcre:/etc/postfix/checks_smtp_headers
-o syslog_name=headerchecks
Code:
# service postfix restart
Why is this not working?