>>> 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) 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