procmail
[Top] [All Lists]

Re: Big Brother functionality

2003-03-18 18:09:00
I think this is pretty easy; how about something like
this in your /etc/procmailrc depending on if you want
to include or exclude (note that if you have your MTA
deliver direct to procmail you do not need .forward's):

---------------------------------------------
# exclude from bigbrother
:0 H
* !^To:(_dot_)*thepresident(_at_)mycompany(_dot_)com
{
  :0c:
  /somepath/BigBrotherInbox
}
---------------------------------------------

OR

---------------------------------------------
# include in bigbrother
:0 H
* ^To:(_dot_)*spyonemployee1(_at_)mycompany(_dot_)com|\
  ^To:(_dot_)*spyonemployee2(_at_)mycompany(_dot_)com|\
  ^To:(_dot_)*spyonemployee2(_at_)mycompany(_dot_)com|\
  ^To:(_dot_)*spyonemployee4(_at_)mycompany(_dot_)com|\
  ^To:(_dot_)*spyonemployee5(_at_)mycompany(_dot_)com|\
  ^To:(_dot_)*spyonemployee6(_at_)mycompany(_dot_)com|\
  ^To:(_dot_)*spyonemployee7(_at_)mycompany(_dot_)com
{
  :0c:
  /somepath/BigBrotherInbox
}
---------------------------------------------

--
Daryle A. Tilroe

Jayson Henkel wrote:
Hello,

I'm attempting to setup a big brother type of situation. I need all mail
incoming into the system to get copied to an individual Maildir folder,
and deliver the original normally. This all has to occur based on the
user its coming into. I'm not sure how to accomplish this. However I've
theorized that, I need a domain wide procmailrc ie /etc/procmailrc. I'm
hoping I can forward mail to the big brother account and have the
.forward to procmail take care of the actual sorting into individual
maildirs.



_______________________________________________
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>