Ralph Seichter: > I'm currently trying to figure out if it is possible to use different > header_checks for TCP ports 25 (mail from world) and 587 (mail submitted > by authenticated users). I tried the following without success: > > # cat /etc/postfix/master.cf > smtp inet n - n - - smtpd > -o content_filter=amavis:[127.0.0.1]:10024 > submission inet n - n - - smtpd > -o content_filter=amavis:[127.0.0.1]:10124 > -o > smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject > -o smtpd_sasl_auth_enable=yes > -o smtpd_sasl_type=dovecot > -o smtpd_sasl_path=private/dovecot-auth > -o smtpd_sasl_security_options=noanonymous > -o header_checks=pcre:/etc/postfix/submission_header_checks
As documented header_checks are not implemented in smtpd(8) but in cleanup(8). If you are courageous you can implement different cleanup services: /etc/postfix/master.cf" submission . . . . . . . . . . . smtpd -o cleanup_service=cleanup_for_submission cleanup_for_submission . . . . . cleanup -o header_checks=pcre:/etc/postfix/submission_header_checks Wietse