rafa wrote:
Hello everyone,
I created a second cleanup for the submission service to have separate
header checks from incoming emails.
cleanup-out unix n - - - 0 cleanup
-o header_checks=pcre:/etc/postfix/header_checks-out
-o body_checks=pcre:/etc/postfix/body_checks-out
-o mime_checks=pcre:/etc/postfix/mime_checks-out
After this change the recipients that have a virtual alias to an
external host or other virtual domain, in the example gmail.com, stop
working for the mail submitted via the submission service ,mail received
via port 25 flows as before.
The only change was in the submission service
It doesn't work as expected because your main.cf contains
receive_override_options = no_address_mappings
To fix this, just add
-o receive_override_options=
(ie. an empty value)
to your submission service.
Modified submission service:
---------------------------
submission inet n - - - - smtpd
-o smtpd_etrn_restrictions=reject
-o
smtpd_sender_restrictions=permit_mynetworks,reject_sender_login_mismatch
-o
smtpd_client_restrictions=permit_sasl_authenticated,permit_mynetworks,reject
-o content_filter=
# -o receive_override_options=no_header_body_checks
add here:
-o receive_override_options=
-o
smtpd_milters=unix:/clamav/clamav-milter.ctl,inet:localhost:10040
-o milter_default_action=accept
-o smtpd_discard_ehlo_keywords=silent-discard,8bitmime,etrn,dsn
-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_security_options=noanonymous
-o cleanup_service_name=cleanup-out
-- Noel Jones