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:

> [email protected]      [email protected]
> [email protected]      [email protected]

I hope you could help me.

Regards,

Nicolas



On Fri, 31 Jul 2009 15:44:36 +0200
Nicolas Letellier <[email protected]> wrote:

> Hello.
> 
> I have two mailboxes (read with pop/imap connection), called [email protected] 
> and [email protected]. 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  
> 
> > [email protected]    [email protected]
> > [email protected]    [email protected]
> 
> 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 [email protected] is sent two times. That's 'normal' because the 
> script do:
> >sendmail -oi -f [email protected] [email protected] (and send two mails -> 
> >user1@ and user2@)
> >sendmail -oi -f [email protected] [email protected]
> 
> So, user2@ receive two mails.
> 
> Do you have an idea to prevent this problem? Any advices?
> 
> Thanks a lot.
> 
> Regards,
> -- 
>  -Nicolas.


-- 
 -Nicolas.

Reply via email to