Loading ...
Sorry, an error occurred while loading the content.

Re: Integration of content_filter and mailbox/alias

Expand Messages
  • Nicolas Letellier
    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 ...
    Message 1 of 3 , Jul 31, 2009
    • 0 Attachment
      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 <nicolas@...> 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:
      >
      > > user1@... user2@...
      > > user1@... user1@...
      >
      > I hope you could help me.
      >
      > Regards,
      >
      > Nicolas
      >
      >
      >
      > On Fri, 31 Jul 2009 15:44:36 +0200
      > Nicolas Letellier <nicolas@...> wrote:
      >
      > > Hello.
      > >
      > > I have two mailboxes (read with pop/imap connection), called user1@... and user2@.... 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
      > >
      > > > user1@... user2@...
      > > > user1@... user1@...
      > >
      > > 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 user2@... is sent two times. That's 'normal' because the script do:
      > > >sendmail -oi -f sender@... user1@... (and send two mails -> user1@ and user2@)
      > > >sendmail -oi -f sender@... user2@...
      > >
      > > So, user2@ receive two mails.
      > >
      > > Do you have an idea to prevent this problem? Any advices?
      > >
      > > Thanks a lot.
      > >
      > > Regards,
      > > --
      > > -Nicolas.
      >
      >
      > --
      > -Nicolas.


      --
      -Nicolas.
    Your message has been successfully submitted and would be delivered to recipients shortly.