On 2020-09-15 19:39 BST, Fourhundred Thecat wrote: > > On 2020-09-15 10:18, Nick wrote: > > <http://www.postfix.org/BUILTIN_FILTER_README.html#mx_submission>
> But when I remove it from main.cf and add last line to master.cf: > > smtp inet n - n - - smtpd > -o smtpd_tls_security_level=may > -o smtpd_sasl_auth_enable=no > -o syslog_name=postfix:25 > -o header_checks=regexp:/var/local/postfix/maps/header_checks > > then it does not work. You're close but your '-o header_checks' is in the wrong place. It needs to go into a cleanup service, not smtpd. The cleanup service is reserved for your port 25 smtpd service by giving the former a distinctive name and giving the latter a '-o cleanup_service_name'. Take another look at the README (in there it's applied to submission but the principle is the same). HTH -- Nick