Hello,

We have a virtual_alias_maps entry like this

handled@by.exchange     handled@by.dovecot,handled@by.exchange

The problem is that the address handled@by.dovecot receives every email 
sent to handled@by.exchange twice: handled@by.exchange is expanded before 
amavisd is called, and also after receiving the messages from there.

I modified master.cf and disabled virtual_alias_maps at receiving back the 
email from amavis:

localhost: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 smtpd_end_of_data_restrictions=
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o header_checks=
        -o mime_header_checks=
        -o nested_header_checks=
        -o body_checks=
        -o virtual_alias_maps=

but it did not help. 

We cannot change the address handled@by.exchange to something else. The 
address handled@by.dovecot cannot be added to the alias in exchange.

Instead of "-o virtual_alias_maps=", should we use something like
"-o cleanup_service_name=amavis_cleanup"? Then we'd need the master.cf 
entry 

amavis_cleanup    unix  n       -       y       -       0       cleanup
        -o virtual_alias_maps=

But the manpage of smtpd does not state that cleanup_service_name is 
available as an option.

How could one disable virtual_alias_maps in smtpd at receiving the mail 
from amavis?

Multi-instance could be a solution, but I'd better avoid it in this case.

Best regards,
Jozsef
-
E-mail  : kad...@blackhole.kfki.hu, kadlecsik.joz...@wigner.hu
PGP key : https://wigner.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics
          H-1525 Budapest 114, POB. 49, Hungary

Reply via email to