Michel Verdier via Postfix-users: > 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.
It is added by the smtpd process, i.e. before mail is queued. The exception is that the header is omitted by an smtpd process before an smtpd_proxy_filter. This was done to avoid stutter (two near-identical headers from the smtpd processes before and after a filter) but that overlooked the possibility that the filter is delivering the message to a non-local SMTP server. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org