Hello!! Gerald Galster wrote in <e4789317-8dea-4edf-8b96-ac5b9cedf...@gcore.biz>: |>>> 192.0.2.1:submission inet n - n - - smtpd |>>> -o syslog_name=vpnsubmission |>>> -o smtpd_sasl_auth_enable=no |>>> -o |>>> smtpd_relay_restrictions=permit_mynetworks,reject_unauth_destination |>> -o header_checks=pcre:/etc/postfix/vpn_header_checks |> |> header_checks is not outbound | |Sorry, header_checks is not an smtpd option but it is possible using |cleanup_service_name as Rob pointed out. Here is an example: | |https://www.postfix.org/BUILTIN_FILTER_README.html#mx_submission |(Configuring different header/body checks for MX service and submission \ |service)
README_FILES/BUILTIN_FILTER_README was a *fantastic* hint, thank you very much! Well i now have to start two (!) new services, but with the following in master.cf 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}}} it really seems to work out! |Global header_checks works for me because the used regular expression |matches hostname and ESMTPSA submission only and does not interfere \ |otherwise. | |Best regards |Gerald Thank you very much. Ciao! --End of <e4789317-8dea-4edf-8b96-ac5b9cedf...@gcore.biz> --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)