On 7/8/06, Geoff Soper <[EMAIL PROTECTED]> wrote:

.qmail contains the lines:
| true
./Maildir/

Caveat:  I don't use qmail, and don't even particularly like qmail, so
what I'm about to say are really educated guesses rather than
definitive answers.

which I've altered to:
| true
| /usr/bin/procmail -m ./.procmailrc

No, don't use the -m option.  Just use

| /usr/bin/procmail

and let procmail figure out where the $HOME/.procmailrc file is on its
own.  If you want any options to procmail there at all, you want the
"-d recipient" option (where you'll have to get the value for
"recipient" from qmail somehow, I don't know how).

Incidentally, I have no idea what the purpose of that pipe to true is,
and I suspect you should just remove it.

and in that .procmailrc :
DIR="./Maildir/"

What exactly do you think that's accomplishing?  If you never refer to
$DIR again anywhere, this is meaningless.  If you want to change
directories, assign to MAILDIR.  If you are trying to force procmail
to deliver in maildir format, I think what you want is

DEFAULT="$HOME/Maildir/"

I'm not sure about the $HOME part, but DEFAULT should never be a
relative path (never one starting with "./" or with no directory
reference at all).

I've no desire to run different configurations for different users or
addresses, the single configuration is fine, I just want to solve these
errors I'm seeing in the procmail_log file.

Where is this "./.procmailrc" file that you are trying to read with
the -m option?  That is, what do you expect the current directory (./)
to be at the time procmail runs?

If you really want exactly this same config for all users, then you
should move that ./.procmailrc file (wherever it is) to
/etc/procmailrc (with no dot) and insert DROPPRIVS=yes somewhere
before the recipe that runs spamassassin, probably at the very top of
the file (unless you want all users to write to the same log file as
well).  If you later add things to /etc/procmailrc, you'll need to
research whether they belong above or below the DROPPRIVS (below will
usually be safe, but not always correct).

Reply via email to