procmail
[Top] [All Lists]

Re: Halting delivery on program failure

2006-03-24 10:49:37
* Jim C. Nasby <decibel(_at_)decibel(_dot_)org> [03-24-06 04:36]:
On Thu, Mar 23, 2006 at 03:10:21PM -0500, Patrick Shanahan wrote:
* Jim C. Nasby <decibel(_at_)decibel(_dot_)org> [03-23-06 10:32]:
Postfix allows you to set a limit on the size of a mailbox. By default,
this is ~50MB. The problem is that this limit is set by essentially
doing a ulimit. So if your procmail is set to log, and the logfile
exceeds this limit, things stop working properly. Certainly one issue I
was seeing was that spamassassin wasn't being run.

The problem can be solved by either bumping up the size of
mailbox_size_limit in your postfix config, or using a limit at all by
setting it to 0.

or directing procmail to put it's log in another directory...

Won't work. Postfix has to handle mailbox size via a ulimit, otherwise
they'd have no way to enforce it when using something like procmail.


???  Procmail's *log* file is just that, a log (text) file, not an email
and not delivered by email/postfix.  Why would postfix care where
procmail stores it's log file?  My procmail log is stored in a directory
below /home/<me>.

SPOOL="/var/spool/mail"
MAILDIR="$HOME/mail"
DEFAULT="$SPOOL/<me>"
<me>SPOOL="$SPOOL/<me>"

#Directory for storing procmail log and rc files
PMDIR="$HOME/.procmail"

LOGFILE="$PMDIR/log"


This is for a personal "~/.procmailrc", but you can do the same in an
"/etc/procmailrc".

-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org
HOG # US1244711         Photo Album:  http://wahoo.no-ip.org/gallery2

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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