-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE]On Behalf Of
Floyd Hagen
Sent: Wednesday, February 11, 2004 5:52 PM
To: Procmail list
Subject: lock problem (recipe only works for local delivery)
Hello everyone,
I'm confused on why the 4th recipe fails when the other identical ones
work fine. The permissions in both user trees are identical, the path
names are valid -- the last mywife recipe works for local deliveries.
Here's my /etc/procmailrc
______
FLOYD_MAILDIR=/home/floyd/Mail/
mywife_MAILDIR=/home/mywife/Procmail/
LOGFILE=/var/log/procmail_log
DEFAULT=$FLOYD_MAILDIR/inbox/
DROPPRIVS=YES
VERBOSE=YES
I think a problem you'll run into, after dropping privs is
that if this script is run as 'mywife' it may not be able
to write to files under 'floyd' and vice versa. So, if both
you and your wife appear on the To: line, or CC: lines together
in the same message (and various other combinations, for example
if one/both of you were bcc'd and and the other is on the To:
or CC: line), you'll be executing /etc/procmailrc on behalf
of one user and trying to deliver into the other user's directory.
As admin, you could probably fix this, using group
permissions, and placing floyd and wife in the same group
and making the Mail directories group r,w,x.
:0:
* ^TO_flohagen(_at_)popemail\(_dot_)net
$FLOYD_$MAILDIR/inbox/
I think locking isn't required, and is ignored for maildirs.
If you add
VERBOSE=yes
LOGFILE=$HOME/procmail.log
just after DROPPRIVS=yes, it will tell you more about
what is going on. Don't forget to disable logging after
things are working, otherwise the log files will get big.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail