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

292078RE: always_bcc

Expand Messages
  • Jumping Mouse
    Mar 19, 2013
      Thank you for the reply! 

      > Jumping Mouse:
      > > Hello everyone,
      > >
      > > I have set up always_bcc = journal@... for an email
      > > archiving account. How can bypass always_bcc for certain senders?
      >
      > It's called *always*_bcc for a reason...

      Yes that makes sense :-)

      >
      > > for example I do not want to always_bcc any email that comes from
      > > audit1@... and or audit2@...
      >
      > If you don't want to bcc ALL senders, use sender_bcc_maps to make
      > exceptions, Postfix regular expression tables have VERY rudimentary
      > if/else/endif support.
      >
      > /etc/postfix/main.cf:
      > sender_bcc_maps = pcre:/etc/postfix/sender_bcc

      OK so do still keep the  always_bcc = journal@...  in  /etc/postfix/main.cf   right?  Does placement make a difference?



      >
      > /etc/postfix/sender_bcc:
      > if !/^audit1@mydomain\.com$/
      > if !/^audit2@mydomain\.com$/
      > /./ journal@...
      > endif
      > endif
      >
      > (I warned you that it is VERY rudimentary. There is no "DUNNO"
      > special result value that forces a lookup failure).
      >
      > Note: do not put spaces at the beginning of the lines.
      >
      > Pointers:
      > man pcre_table
      >
      > Wietse
    • Show all 24 messages in this topic