procmail
[Top] [All Lists]

Re: Procmail filter does not send the spam email to correct folder

2009-09-29 23:14:42
At 19:53 2009-09-29 -0500, Bartosz Wegrzyn wrote:
after changing dropprivs=no
no more errors ,

because at that point, the delivery is being made with elevated privileges. It should be noted that up until that post, you had never made it clear that you were delivering as any user other than yourself (since you're emailing from an address of "junk@") -- thus my comment about delivering to a different mailbox name for clarity.

_root_ can create files at will within the /var/spool/mail dir - joe user shouldn't be able to. Thus your problem in trying to create various files in there after dropping privileges.

i had to modify procmail rule to point to the mailbox by using fullpath
instead of
junk
/var/spool/mail/junk

Well, one needs to consider the current working directory when delivering to a relative path.


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

____________________________________________________________
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