Tino Donderwinkel a écrit :
> Thanks for pointing me in the right direction! Great.
> 
> I changed this;
> 
> smtp      inet  n       -       n       -       -       smtpd
>         -o cleanup_service_name=pre-cleanup
>         -o receive_override_options=no_address_mappings
> 
> That appears to do the trick!
> 
> Now I have to check if I haven't broken anything else. But it all appears
> okay.
> Too bad this is done AFTER the amavisd-new filtering, 

what you did (receive_override_options=no_address_mappings) disable
address rewrite _before_ the filter.

you can do it the other way (disable rewrite after the filter) by
putting the option under the
127.0.0.1:10025 ....   smtpd

but remove the received_override_options under "smtp", otheriwse, you'll
have norewrite at all.

you probably don't need a specific cleanup (pre-cleanup), unless you
want specific options that can't be passed via receive_override_options.

note that if rewrite is done before the filter, this means amavisd-new
will see addresses after rewrite (so aliases will be expanded before
filtering). This may or may not be desired.


> and that the
> X-Original-To: still list the bogus address...

are you sure you disabled rewrite under "smtp"?
maybe you should show your master.cf...

> I couldn't figure out a way to do this before the filtering took place.
> (I've tried through 'cleanup'.)
> 


Reply via email to