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

duplicate bcc'd messages through always_bcc

Expand Messages
  • Nathan
    I send all received and sent messages to an auditing account through the always_bcc directive and main.cf. Unfortunately, I always receive two of every
    Message 1 of 2 , Jun 1, 2006
    • 0 Attachment
      I send all received and sent messages to an auditing account through the
      "always_bcc" directive and main.cf. Unfortunately, I always receive two
      of every message in that audit account. I recognize that always_bcc is
      designed to avoid mailer loops, so I have to imagine it's one of my
      filters causing the messages to get processed twice, but I can't figure
      out which one. I'm using postfix 2.1.1-1.17 (SLES9 RPM) and Amavis
      (wrapping around clamav) and Spamassassin for virus and spam filtering,
      respectively. I know there have been previous discussions of this sort
      of problem, but none of the errant configurations were close enough to mine.

      Here are, what I believe to be, the relevant lines from my master.cf:

      --------------
      smtp inet n - n - - smtpd -o
      content_filter=spamassassin
      maildrop unix - n n - - pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
      cyrus unix - n n - - pipe
      user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m
      ${extension} ${user}
      uucp unix - n n - - pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
      ($recipient)
      ifmail unix - n n - - pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
      bsmtp unix - n n - - pipe
      flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
      $recipient
      vscan unix - n n - 10 pipe
      user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
      procmail unix - n n - - pipe
      flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc
      ${sender} ${recipient}
      spamassassin unix - n n - - pipe
      user=nobody argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f
      ${sender} ${recipient}
      ###### AMAVIS CLAMAV VIRUS SCANNING ######
      smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o
      disable_dns_lookups=yes
      127.0.0.1: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
      mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o
      smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o
      smtpd_hard_error_limit=1000
      --------------------

      Thanks in advance!
    • Noel Jones
      ... Add -o receive_override_options=no_address_mappings to your 127.0.0.1:10025 smtpd instance. http://www.postfix.org/postconf.5.html#receive_override_options
      Message 2 of 2 , Jun 1, 2006
      • 0 Attachment
        At 09:13 AM 6/1/2006, Nathan wrote:
        >I send all received and sent messages to an auditing
        >account through the "always_bcc" directive and
        >main.cf. Unfortunately, I always receive two of every
        >message in that audit account. I recognize that
        >always_bcc is designed to avoid mailer loops, so I have to
        >imagine it's one of my filters causing the messages to get
        >processed twice, but I can't figure out which one. I'm
        >using postfix 2.1.1-1.17 (SLES9 RPM) and Amavis (wrapping
        >around clamav) and Spamassassin for virus and spam
        >filtering, respectively. I know there have been previous
        >discussions of this sort of problem, but none of the
        >errant configurations were close enough to mine.
        >...
        >###### AMAVIS CLAMAV VIRUS SCANNING ######
        >smtp-amavis unix - - n - 2 smtp -o
        >smtp_data_done_timeout=1200 -o disable_dns_lookups=yes
        >127.0.0.1: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 mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes
        >-o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001
        >-o smtpd_hard_error_limit=1000
        >--------------------

        Add -o receive_override_options=no_address_mappings to your
        127.0.0.1:10025 smtpd instance.
        http://www.postfix.org/postconf.5.html#receive_override_options

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