Am 01.11.2016 um 06:46 schrieb @lbutlr:
...
>>> 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
>>
>> I suspect no_address_mappings isn't appropriate here. It disables virtual
>> aliases, so you're doing that ahead of amavisd, which may be OK but to quote
>> postconf(5):
>
> That is the amavis port, and it breaks without no_address_map
You should follow Viktor. When you are using amavisd in
after-queue-mode, you should set no_address_mappings before amavisd:
/etc/postfix/main.cf:
content_filter = scan:localhost:10025
receive_override_options = no_address_mappings
(from http://www.postfix.org/FILTER_README.html#advanced_filter)
And remove no_address_mappings from your "127.0.0.1:10025 inet"-smtpd.
---
If you have very(!) good reasons for doing adress mapping before
amavisd, you could provide a special smtpd-service for amavisd's
notifies, like :
> 127.0.0.1:10027 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
Set in amavisd configs:
$notify_method = 'smtp:[127.0.0.1]:10025';
Willi