Code: Select all
if [[ -z $(grep '^Received: from localhost' /etc/postfix/header_checks) ]]; then
Code: Select all
"/^Received:\ from\ localhost\ \(localhost\ \[127.0.0.1\]\)/ IGNORE"
Possible solution: change line 389 to:
Code: Select all
if [[ -z $(grep '\^Received:\\ from\\ localhost' /etc/postfix/header_checks) ]]; then
Temp Fix:
Code: Select all
/etc/postfix/header_checks
/^Received:\ from\ sansspam.private.lan\ \(localhost\ \[127.0.0.1/ IGNORE
/^Received:\ from\ sansspam.private.lan\ \(localhost\ \[::1/ IGNORE
/^Received:\ from\ localhost\ \(localhost\ \[127.0.0.1\]\)/ IGNORE
/^Received:\ from\ localhost\ \(localhost\ \[127.0.0.1\]\)/ IGNORE
/^Received:\ from\ localhost\ \(localhost\ \[127.0.0.1\]\)/ IGNORE
/^Received:\ from\ localhost\ \(localhost\ \[127.0.0.1\]\)/ IGNORE
Remove the duplicate lines and run the following commands
Code: Select all
postmap /etc/postfix/header_checks
systemctl restart postfix
systemctl restart opendmarc.service