Procmail and global mail archive.

Paul Schulz pschulz01 at gmail.com
Sun Jul 13 13:10:42 UTC 2008


Greetings,

Hopefully someone can help, or can make a suggestion on what I am doing
wrong.

I am using postfix and procmail (3.22-16ubuntu3) on a Ubuntu(7.10)
system to create a global email archive
(/var/backup/mail_archive_<date>/<user>) of all received email.

It is generally working well, except every I've been seeing 'procmail'
segfaults in the logs. The sender gets a 'failed to deliver' messages,
while the recipient receives no message at all..

(This is not how I would like it work.. failure of my archiving setup
shouldn't affect delivery.)

I need a fix, and/or a suggestion on how to make it more robust, as it
'feels' like it is message dependant. (I see nothing for days, then a
stack of errors.)

Ok.. some more information..

The original message received be the sender contained..

  Command died with signal 11: "/usr/bin/procmail". Command output:
  procmail:
  Exceeded LINEBUF

I up'ed the LINEBUF setting in the /etc/prcomailrc file (see below) but
I'm now seeing segfaults for procmail in the logs.

  eg.
  ...
  [17752114.220056] procmail :  1 Time(s)
  [17752131.406728] procmail :  1 Time(s)
  [17752749.103770] procmail :  1 Time(s)
  [17752766.292519] procmail :  1 Time(s)
  [17753383.952322] procmail :  1 Time(s)
  [17753401.133164] procmail :  1 Time(s)

NOTE: The users reporting the errors, don't have their own .procmailrc
file. Here is the global file.

--[/etc/procmailrc]--
LINEBUF=32768
MAILDIR=$HOME/Maildir/
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=no
VERBOSE=off
DEFAULT=$HOME/Maildir/
COMSAT=no

:0 c
* ^Delivered-To: \/[^@]+
/var/backup/mail_archive_20080603/$MATCH/
---

Cheers,
Paul




More information about the ubuntu-server mailing list