Hello. I find a solution with receive_override_options=no_address_mappings is my friend ;) All is written here: http://www.postfix.org/FILTER_README.html
>smtp inet n - n - - smtpd > -o content_filter=spamassassin > -o receive_override_options=no_address_mappings Regards, Nicolas On Fri, 31 Jul 2009 16:00:26 +0200 Nicolas Letellier <nico...@nicoelro.net> wrote: > I use Postfix 2.4.7. > > In other terms, I don't want virtual_alias_maps be read in these two lines: > > 1 > >smtp inet n - n - - smtpd -o > >content_filter=antispam:dummy > > 2 > >antispam unix - n n - - pipe user=spamd argv=/usr/local/bin/spamc > >-f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} > > If virtual_alias_maps is read in these two lines, there's problem with this > configuration: > > > us...@domain.tld us...@domain.tld > > us...@domain.tld us...@domain.tld > > I hope you could help me. > > Regards, > > Nicolas > > > > On Fri, 31 Jul 2009 15:44:36 +0200 > Nicolas Letellier <nico...@nicoelro.net> wrote: > > > Hello. > > > > I have two mailboxes (read with pop/imap connection), called > > us...@domain.tld and us...@domain.tld. All mails sent to user1 are > > redirected to user2. To do this, I have in virtual_alias_maps: > > , reading your postconf i would suggest the > > > > > us...@domain.tld us...@domain.tld > > > us...@domain.tld us...@domain.tld > > > > It's working fine with this in master.cf: > > >smtp inet n - n - - smtpd > > > > However, when I want to integrate a script (spamassassin for example) in > > master.cf, there is problem. > > > > >smtp inet n - n - - smtpd > > > -o content_filter=antispam:dummy > > > spamassassin unix - n n - - pipe user=spamd > > > argv=/usr/local/bin/spamc -f -e /usr/sbin/sendmail -> oi -f > > > ${sender} ${recipient} > > > > The mail for us...@domain.tld is sent two times. That's 'normal' because > > the script do: > > >sendmail -oi -f sen...@domain.tld us...@domain.tld (and send two mails -> > > >user1@ and user2@) > > >sendmail -oi -f sen...@domain.tld us...@domain.tld > > > > So, user2@ receive two mails. > > > > Do you have an idea to prevent this problem? Any advices? > > > > Thanks a lot. > > > > Regards, > > -- > > -Nicolas. > > > -- > -Nicolas. -- -Nicolas.