Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postfix: Removing Received headers from Outgoing messages

Status
Not open for further replies.

balip

Programmer
Sep 15, 2013
1
0
0
US
I have been testing smtp_header_checks, without much success.

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
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
Code:
submission	inet	n	-	-	-	-	smtpd
 -o smtp_header_checks=pcre:/etc/postfix/checks_smtp_headers
 -o syslog_name=headerchecks
Code:
# service postfix restart
No more success.

Why is this not working?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top