From Dave Sill's "Life with qmail" 
(http://Web.InfoAve.net/~dsill/qmail.html):

5.1. procmail

procmail is a popular Message Delivery Agent (MDA). The function of an
MDA is to accept a message from the MTA for a specific user or
mailbox, and deliver the message according to the user's
desires. procmail can be used to "filter" messages by the content of
various header fields or the body of the message. For example,
messages from a particular person can be directed to a mailbox for
just that person.

There are a couple tricks to running procmail with qmail. First,
procmail is usually built to deliver to an mbox mailbox in
/var/spool/mail. You can rebuild procmail to default to $HOME or you
can instruct users not to rely on procmail to default the location of
the mbox. Unless you patch it for $HOME delivery, procmail will still
use /var/spool/mail for temporary files.

Another problem is that qmail-command and procmail don't have a common
understanding of which exit codes mean what. procmail uses the
standard UNIX exit codes: zero means success, nonzero means failure,
and the cause of the failure is indicated by
/usr/include/sys/errno.h. qmail-command uses certain nonzero codes to
indicate permanent errors and the rest are considered temporary. A
small shell script wrapper can be used to translate the exit codes for
qmail-command. Such a wrapper was posted to the qmail list and is
available from the archives at
http://www.ornl.gov/its/archives/mailing-lists/qmail/1998/04/msg00487.html.

Also, procmail doesn't deliver directly to maildir-format
mailboxes. There's a patch available that implements maildir delivery
in procmail. (See http://www.qmail.org/top.html#maildir) Another
approach is safecat, a program that writes a message on standard input
to a specified maildir. Users can write procmail recipes (delivery
instructions) that use safecat to file the message. You can also skip
procmail altogether, and use maildrop.

El dia Sun, Dec 12, 1999 at 12:21:59PM +0000, [EMAIL PROTECTED] tuvo a
bien escribir: 
> hi all!
> i've got troubles and a question :)
> i can't manage to install procmail. currently i am using qmail-local to
> deliver mails. i also use the /Maildir format and vpopmail. i couldn't find
> a howto or documentation how to install procmail with
> qmail+maildir+vpopmail. hope you can help me!
> thx in advance
> greets
> michael
-- 
Those who don't understand Linux are doomed to reinvent it, poorly.
(Unidentified source.)
 
Look, I'm about to buy me a double barreled sawed off shotgun and show
Linus what I think about backspace and delete not working.
(Some anonymous .signature.)
--
J. Ivan Juanes Prieto  -- Greek and Latin Teacher
Canary Islands (Spain) -- Linux Debian 2.1

PGP signature

Reply via email to