On Sun Mar 20 2016 10:51:51 Wietse Venema       <[email protected]> said:
> 
> With an after-queue content filter, to prevent the before-filter
> Postfix SMTP server from rejecting virtual_alias_maps or canonical_maps
> addresses as "user unknown": 
> 
> - Don't specify "receive_override_options = no_address_mappings"
>  in main.cf.
> 
> - Don't specify "receive_override_options = no_address_mappings" with
>  the pickup daemon.
> 
> - Don't specify "receive_override_options = no_address_mappings" with
>  any before-filter Postfix SMTP server.
> 
> - Don't specify "receive_override_options = no_address_mappings"
>  with the smtp port (port 25).
> 
> - Don't specify "receive_override_options = no_address_mappings"
>  with the submission port (port 587).
> 
> - Don't specify "receive_override_options = no_address_mappings"
>  with the smtps port (port 465).

The FIRST thing I tried was simply adding it to the content filter, but the 
messages bounced.

On Sat Mar 19 2016 18:06:57 @lbutlr     <@lbutlr> said:
> If I add
> 
>  -o receive_override_options = no_address_mappings
> 
> To master.cf in the 127.0.0.1:10025 declarations then addresses that should 
> expand bounce before getting to the filter.

I will try this again, restarting all the mail-related and mail-adjacent 
services instead of just postfix.

smtp-amavis unix -       -       n       -       2       smtp
    -o smtp_data_done_timeout=1200
    -o disable_dns_lookups=yes
127.0.0.1:10025 inet n   -       n       -       -       smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o 
receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings

-- 
"Thank you for sending me a copy of your book; I'll waste no time
reading it." - Moses Hadas

Reply via email to