W dniu 13.05.2014 13:39, Wietse Venema pisze: > Piotr Rotter: >> I have a mail system based on postfix amavisd spamassassin clamav. I >> wanted to e-mail that come from the outside were filtered before queue. >> I tried to use smtpd_proxy_filter but encountered a problem. >> >> When I use the content_filter, postfix sends mail to amavis after using >> virtual_alias_maps, so sends to the target mailbox. >> >> When I use smtpd_proxy_filter, postfix sends mail to amavis with the >> same RCPT TO he got from the client. > > This is necessary, because the after-filter SMTP server may reject > a recipient. Thus, number of recipients must match what the client > sends. Additonally the recipients should be the same, otherwise a > "reject" response would not make sense. > > Wietse >
Thank You for ansfer. Amavisd never rejects one recipient, newer reject RCPT TO, amavisd can only accept or reject whole message. When Amavis have to reject only one recipient and accept another then will send OK to postfix and bounce to sender by $notify_method interface. So I think that in this case is not necessary to send to amavis exactly same RCPT TO list. Is any method to change this behaviour. If is not posible to do that in configuration maybe exist simple way to made it in sources? -- Best regards! Piotr Rotter