procmail
[Top] [All Lists]

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

2009-09-29 13:13:58
what about:

[root(_at_)lexoncom var]# cd /var/
[root(_at_)lexoncom var]# ls -l
total 192
lrwxrwxrwx  1 root root    10 May 14 20:02 mail -> spool/mail


Groups Account wrote:
the emails comes to the mail server and go to user xxx, but because it
is smap 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?



procmail: Match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"
procmail: Locking "junk.lock"
procmail: [4543] Tue Sep 29 12:00:36 2009
procmail: Error while writing to "__GB,00jwKB.lexoncom.com"
procmail: Lock failure on "junk.lock"
procmail: Assigning "LASTFOLDER=junk"
procmail: Opening "junk"
procmail: Error while writing to "junk"
procmail: No match on "^^rom[ ]"
procmail: Assigning
"PATH=/home/junk/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin"
procmail: Locking "/var/mail/junk.lock"
procmail: Assigning "LASTFOLDER=/var/mail/junk"
procmail: Opening "/var/mail/junk"
procmail: Error while writing to "/var/mail/junk"
procmail: Unlocking "/var/mail/junk.lock"
procmail: Notified comsat: "junk@:**Requeued**"
  

____________________________________________________________
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