If you are using exim you can edit /etc/exim.conf and insert:

In the "TRANSPORTS CONFIGURATION" section:

procmail_pipe
 driver = pipe
 command = "/usr/bin/procmail -d ${local_part}"

In the "DIRECTORS CONFIGURATION" section:

procmail:
 driver = localuser
 transport = procmail_pipe


I _believe_ that in this instance (where procmail is run from within
exim that procmail will use a procmailrc file in /root and then a
.procmailrc file in the home directory of the user for whom the mail
is destined.

This scheme allow procmail to handle both sorting of mail from a single
source (ie:  an ISP POP account) to different users based upon whatever
criteria the sysadm chooses as well as sorting of a single users
mail to separate folders (based upon whatever rules that user might
want to use (and includes copying, forwarding, etc.).

On Fri, Jul 16, 1999 at 02:38:57PM +0200, Johann Spies wrote:
> On Thu, 15 Jul 1999, Mark Wagnon wrote:
> 
> > Does anyone have any other procmail sources that I can look at?
> 
> Here is my .forward (I use exim with procmail.  I believe the same can be
> done with exim alone, but I have not tried it):
> 
> #"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #jhspies"
> |/usr/bin/procmail
> 
> and one of the files (shortened) in my .procmail directory:
> 
> # The next recipe will split up Digests into their individual messages.
> # Don't do this if you use a global lockfile before this recipe (deadlock)
> 
> :0
> * ^Subject:.*debian-user-digest
> |formail +1 -d -s >> debian
> 
> :0:
> * ^TOdebian
> debian
> 
> :0:
> * ^CCpgsql
> pygres
> 
> :0:
> * ^FROMglug
> glug
> ------------------------------------
> 
> Johann

Reply via email to