hi list,
having a small problem ... postfix fetchs my mails, passes it through to
spamassassin which passes it through a plugin to clamav which checks for
viruses. the mail with modified headers comes to procmailrc. now, when the
spam or virus flag is set, procmail should deliver the mail to a maildir
which should handle those kind of messages. this is the theory now heres the
script:
DROPPRIVS=YES
LOGFILE=/data/logs/procmail
SHELL=/bin/sh
:0 fw
* < 256000
| /usr/bin/spamc -f
# Mails with a virus are moved into our secure directory
:0
* ^X-Spam-Virus: Yes
/data/mail/web0p3/.maildir/
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0
* ^X-Spam-Status: Yes
/data/mail/web0p3/.maildir/
# Work around procmail bug: any output on stderr will cause the "F" in
"From"
# to be dropped. This will re-add it.
:0 H
* ! ^From[ ]
* ^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e 's/^rom /From /'
}
but i still get the mail and see the following in the logs:
procmail: Unable to treat as directory "/data/mail/web0p3/.maildir/new"
procmail: Skipped "/data/mail/web0p3/.maildir"
From <mailto:jl(_at_)pics(_dot_)co(_dot_)at> jl(_at_)pics(_dot_)co(_dot_)at
Tue Aug 29 16:09:12 2006
Subject: WG: eeest
Folder: /data/mail/web0p1/.maildir/new/1156860553.14408_0.TSwebserve
16253
where could be the problem? the folder is in maildir format:
TSwebserver / # ls -la /data/mail/web0p3/.maildir/
insgesamt 4
drwx------ 9 web0p3 poponly 264 29. Aug 16:21 .
drwxr-x--- 3 web0p3 poponly 72 16. Aug 16:47 ..
drwx------ 2 web0p3 poponly 48 29. Aug 15:55 courierimapkeywords
-rw-r--r-- 1 web0p3 poponly 15 29. Aug 15:55 courierimapuiddb
drwx------ 2 web0p3 poponly 48 16. Aug 16:47 cur
drwx------ 6 web0p3 poponly 224 30. Aug 08:05 .Drafts
drwx------ 2 web0p3 poponly 48 16. Aug 16:47 new
drwx------ 6 web0p3 poponly 224 30. Aug 08:05 .Sent
drwx------ 2 web0p3 poponly 48 30. Aug 08:05 tmp
drwx------ 6 web0p3 poponly 224 30. Aug 08:05 .Trash
hope you can help me, kind regards
Mit freundlichen Grüßen
Jürgen Ladstätter ( jl(_at_)pics(_dot_)co(_dot_)at )
_______________________________________________
P.I.C.S. EDV GmbH.
A-5020 Salzburg, Landsturmstraße 18
Tel.: +43 (662) 455467
Fax.: +43 (662) 455468
Web: <http://www.pics.co.at> http://www.pics.co.at
E-Mail: office(_at_)pics(_dot_)co(_dot_)at
Ihr Partner für Internet, Computer und Software
_______________________________________________
____________________________________________________________
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