On 2023-08-09, Steffen Nurpmeso via Postfix-users wrote: > 192.0.2.1:submission inet n - n - - smtpd > -o syslog_name=vpnsub > -o smtpd_sasl_auth_enable=no > -o > smtpd_relay_restrictions=permit_mynetworks,reject_unauth_destination > -o cleanup_service_name=vpnsub_cleanup > vpnsub_cleanup unix n - n - 0 cleanup > -o {header_checks=regexp:{{/^Received:/ IGNORE}}} > > where 192.0.2.1 is the address where postfix listens on the VPN. > Shouldn't this be adoptable? (Ie special "cleanup" service.)
You apply header_checks on cleanup. I think the header is added by postfix after incoming. Personnally I put header_checks in main.cf to apply filters also when sending. You can use smtp_header_checks if you want to apply only on sending. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org