procmail
[Top] [All Lists]

Re: Incorrect Resolution of $HOME Variable

2009-03-31 03:31:11
On 30-Mar-2009, at 15:50, James Butler wrote:
Um... my $HOME is 755 and $HOME/Maildir is 700 and the actual maildirs
inside are also 700.  Why would dovecot require 777?  Is your dovecot
mail not owned by the user? Are you SURE you are delivering
correctly?  I know lots of people using procmail+dovecot.

Dovecot does NOT require anything other than the default permissions:

/home = 755
/home/user2 = 700
/home/user2/Maildir = 700

Dovecot is working just fine. PROCMAIL only delivers to the directory I
specify in the rules when the entire home tree is set chmod 777. If a
message matches no rules, then delivery is handled as expected with normal
directory permissions.

Then there is something very wrong with your compile of procmail as procmail requires no such thing. Is procmail running *as the user*?

Mine look like that, too (Dovecot-style)(but not the procmail- delivered
ones, as noted in my 'long note'). I just want the mail that matches a
procmail rule to go to the user's primary mailbox, into the IMAP 'new'
directory, just like all of the other mail.

procmail -v is NOT proof that procmail is not expanding the variable.

a .procmailrc that says

LOG=$HOME/test.log
VERBOSE=ON
COMSAT=YES

:0
$DEFAULT

Showing the mail being delivered somewhere other than $HOME/Maildir
would show that procmail is not properly expanding the $HOME.

I am not using local user .procmailrc files, just the global
/etc/procmailrc file, as noted in my 'long note'. But, I appreciate your
point.

And what user is running that? If that is not being run by root, then DROPPRIVS won't work correctly.

I can accept that. Please tell me which logs would be useful to the group?

Well, I was referring to the test.log from my .procmailrc, but since you are not using .procmailrc filess, you'd need to log from the procmailrc file itself.


--
Suddenly the animals look shiny and new

____________________________________________________________
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