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

294566Re: Report misses original mail

Expand Messages
  • Wietse Venema
    Aug 1, 2013
    • 0 Attachment
      bitozoid:
      > As an alternative for fault tolerance and debugging, I think I can just
      > archive every mail (too few):
      >
      > sender_bcc_maps = static:localarchive
      > recipient_bcc_maps = static:localarchive
      >
      > and then alias localarchive to a maildir folder. However, I don't want to
      > keep any other local mailbox. That is, if a mail is sent to a local account
      > and no alias is defined, I'd like to get an error (not to miss any
      > message). Is there a way to set that?

      Regular expressions to the rescue:

      recipient_bcc_maps = pcre:/path/to/file

      And a pattern that excludes local recipients:

      if !/@example\.com$/
      /./ localarchive
      endif

      References:
      http://www.postfix.org/pcre_table.5.html

      Wietse
    • Show all 5 messages in this topic