procmail
[Top] [All Lists]

Using Procmail to selectively filter off outgoing SMTP with Postfix

2001-03-14 07:16:46
Hello

I am trying to get around a deficiency with our mail client Eudora, in that it has no auto_bcc: option unlike say Pegasus or NS-Messenger. We want certain staff to always get a copy of their bosses outgoing e-mail & with our current server IMAP is broken because we use Maildir format mailboxes & the only Maildir-aware IMAPD (courier) will not compile on the server (Solaris 4.1.3_U1)

What I have set up in prototype is an master account which receives all output from the Postfix "always_bcc" config option. This account has a .procmailrc + the standard procmail forward set up.

.forward = "|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75#mailtest"

With very simple test recipe as below, it performs as expected, a message from the target generates exactly one forwarded message to the coasupport address (it only sends one copy even if the original message had more than one recipient, which is what we want).


DEFAULT=/dev/null
:0
* ^X-Sender: manager(_at_)mail(_dot_)coa(_dot_)cranfield(_dot_)ac(_dot_)uk
! coasupport(_at_)cranfield(_dot_)ac(_dot_)uk

However, it does, however, also try to send a copy to the master account itself which generates a mail forwarding loop, this is detected by Postfix which handles it. The message to MAILER_DAEMON gets dumped to /dev/null (which is acceptable I guess) but in the process, it writes syslog records which are going to bump up the size of my log files.

Has anyone seen this before or got a work around for it ?

Regards

Les Oswald

"slowly and surely drew their plans against us"

H G Wells - The War of the Worlds
                                        ____              _
                                     | __\_\_o____/_|
                                     <[___\_\_-----<
                                     |  o'
Dr R L Oswald
Systems & Networks Manager
SOE
Hangar 3
Cranfield University
CRANFIELD, Beds. MK43 0AL UK
Mobile: 07796-546964
Tel: 01234-750111 x5194
Fax: 01234-751562

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>