procmail
[Top] [All Lists]

Re: procmail, qmail, maildirs etc

2000-07-03 08:00:21
Ian wrote,

| I'm still trying to sort a large mailspool into Maildirs. I'm running
| qmail 1.03, procmail 3.15pre, and it's still not working.

No NAUSEA for that: by "sort" Ian clearly means "file."

| As ever, the command I'm trying to run is:
| 
| $ formail -ns procmail .procmailrc < SORTME
| 
| and the error I'm getting is:
| 
| procmail: Couldn't create "/var/spool/mail/reflex"

It seems the procmail binary still wants to use /var/spool/mail/$LOGNAME
as $ORGMAIL, and it performs its usual check on the accessibility of that
file first.  You could recompile, as you said, and change src/authenticate.c
to point ORGMAIL elsewhere, but it might be easier in the interim just to
bypass the check on $ORGMAIL, and procmail's -m option does that:

  formail -ns procmail -m $HOME/.procmailrc < SORTME

Note that using -m makes procmail look for rcfiles expressed as relative
paths from ., not from $HOME, so you need to specify $HOME.  (I'm only about
95% sure of that, but specifying $HOME/ can't hurt.)  Also, if your .proc-
mailrc assumes MAILDIR=$HOME at the start, you'll need to assign that expli-
citly.  (That's the all-caps MAILDIR, meaning procmail's working directory,
not to be confused with a qmail Maildir.)  And finally, your .procmailrc
should set a value for DEFAULT just in case, by your design or otherwise,
mail reaches the end of the rcfile still undelivered.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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