Jason Williams <jwilliams(_at_)courtesymortgage(_dot_)com> wrote:
Thanks Martin...it seems to be almost working...
However, I get the following error in the maillog:
Sep 26 16:21:27 corpmail postfix/local[3486]: 41F61AB543:
to=<jwilliams(_at_)courtesymortgage(_dot_)com>, relay=local, delay=2,
status=bounced
(can't create user output file. Command output: procmail: Lock failure on
"/home/spamcop/Maildir/.lock" procmail: Unable to treat as directory
"/home/spamcop/Maildir" procmail: Error while writing to
"/home/spamcop/Maildir" )
So i'm not sure what im doing incorrectly, but I am doing something wrong.
:)
Just to verify, what im trying to do is have all email that comes in with
[SPAM] in the headers to be moved to the spamcop user for review.
Would it be better if I made the folder for the spam to be held in
/var/spool/mail ?
I'm new to procmail so im brainstorming and trying to gather some ideas.
Thanks.
Jason
looking at the error, you need to check the permissions on the directory
/home/spamcop/Maildir/, as procmail fails to create the files there for some
reason. Are you running procmail as a user other than the owner of that
directory ? Postfix will by default run procmail as the user that has the
mail delivered, so using hard coded paths is not always a good idea. You
could try altering the permissions on the /home/spamcop/Maildir directory to
0777 for a few minutes to verify that this is the cause.
As for which directory to use, I think that maildir is the best structure to
use, as it is generally easier to manage IMO.
--
Martin
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail