[Prev][Next][Index][Thread]

Re: Q: piping mail to procmail



Hi,

Here's a copy of a script (qmail-procmail) that I include in the Debian 
package of qmail, for just this purpose.  Here's the line you put in your 
.qmail:

  |/usr/sbin/qmail-procmail

The only thing it does in addition to the preline that's already been 
mentioned, is translate procmail return codes into something qmail will 
understand.

You might want to get your ISP to install it in a publicly accessible area
so others can use it.

Cheers, Phil.
#!/bin/sh
# Copyright (c) 1998 Software in the Public Interest <http://www.debian.org/>
# Written by Philip Hands <phil@xxxxxxxxx>. Distributed under the GNU GPL
# $Id: qmail-procmail,v 1.2 1998/03/24 19:31:27 phil Exp $

/usr/bin/preline /usr/bin/procmail && exit 0

# check if procmail returned EX_TEMPFAIL (75)
[ $? = 75 ] && exit 111

# otherwise return a permanent error
exit 100


Follow-Ups: References: