procmail
[Top] [All Lists]

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

2009-09-29 13:41:34
At 12:06 2009-09-29 -0500, Groups Account wrote:
the emails comes to the mail server and go to user xxx, but because it
is smap

smap?  So you're doing some experimental stuff?

 the procmail filters it and redirects to junk mailbox,
the /var/spool/mail/
has both xxx and junk mailboxes
the /shared1/var/spool/mail
is the directory on the drbd filesystem with permissions:

[root(_at_)lexoncom ~]# ls -l /shared1/var/spool/mail
total 33720

-rw-rw---- 1 junk         mail   133435 Sep 29 11:52 junk

-rw------- 1 root         root   100238 Sep 29 04:02 root
drwxrwxrwx 2 root         root     4096 Oct 16  2008 SPAM
[root(_at_)lexoncom ~]# cd /shared1/var/spool/

[root(_at_)lexoncom spool]# ls -l
total 4
drwxr-xr-x 3 root root 4096 Sep 29 04:02 mail
[root(_at_)lexoncom spool]#

above could be a problem so i did :
[root(_at_)lexoncom spool]# chown root:mail mail
[root(_at_)lexoncom spool]# ls -l
total 4
drwxr-xr-x 3 root mail 4096 Sep 29 04:02 mail
[root(_at_)lexoncom spool]# chmod 770 mail
[root(_at_)lexoncom spool]#

But it did not help, so question is what user is trying to write to that
mailbox?

usually, user (junk) with group (mail). If written elsewhere, usually, it'll be as the user but with whatever their primary group is.

Is procmail being invoked from a forward file, or as the LDA?

procmail: Locking "/var/mail/junk.lock"

er, /var/mail != /var/spool/mail

check perms on THAT folder.

What does 'procmail -v' report ?



Might I suggest you try specifying a path to a folder which the junk user owns, and see how your success is then (and who owns the file, etc), then sort the perms on whichever system spool folder is actually in use.

You might want to take a gander at my "procdiag" script (see my .sigline) - it collects some commonly useful information for diagnostic purposes.

---
 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