Procmal filterung für IMAP (safecat Problem?)

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
harlekin
Posts: 6
Joined: 2004-08-21 14:46

Procmal filterung für IMAP (safecat Problem?)

Post by harlekin » 2007-11-30 15:38

Ich möchte für einen Newsletter (Fedora List) Serverseitig eine Filterung einsetzen um die E-Mails von diesem Newsletter direkt ins richtige IMAP Verzeichnis gelegt zu bekommen.

Hier ist meine procmail.log
--- Logging /var/qmail/mailnames/*****.com/info/Maildir/procmail.log for popuser procmail: [3192] Fri Nov 30 15:31:08 2007
procmail: No match on "^X-Spam-Status: Yes.*"
procmail: No match on "^Subject:.*** SPAM ***"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fedora-list@redhat.com"
procmail: Executing "/usr/bin/safecat,/var/qmail/mailnames/****.com/info/Maildir/tmp,/var/qmail/mailnames/grams-it.com/info/Maildir/NEWSLETTERS.Fedora.list/"
safecat: fatal: could not stat directory: file does not exist
procmail: Error while writing to "/usr/bin/safecat"
procmail: Assigning "LASTFOLDER=/usr/bin/safecat /var/qmail/mailnames/****.com/info/Maildir/tmp /var/qmail/mailnames/****.com/info/Maildir/NEWSLETTERS.Fedora.list/"
procmail: Assigning "LASTFOLDER=/var/qmail/mailnames/****.com/info/Maildir/new/1196433068.3192_0.h1188542"
From fedora-list-bounces@redhat.com Fri Nov 30 14:31:08 2007
Subject: Re: Fedora and Ubuntu
Folder: /var/qmail/mailnames/****.com/info/Maildir/new/119643306 5099

Hier ist die .procmailrc
MAILDIR=/var/qmail/mailnames/****.com/info/Maildir
SPAMDIR=${MAILDIR}/.*SPAM*
DEFAULT=${MAILDIR}/
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME} "
VERBOSE=yes


# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the designated spam folder
:0
* ^X-Spam-Status: Yes.*
| /usr/bin/safecat "${MAILDIR}/tmp" "${SPAMDIR}/"

# *** SPAM *** in den *SPAM* Ordner legen
:0
* ^Subject:.*** SPAM ***
| /usr/bin/safecat "${MAILDIR}/tmp" "${SPAMDIR}/"


# Fedora List Newsletter in die Mailbox legen
:0
* ^TO_fedora-list@redhat.com
| /usr/bin/safecat "${MAILDIR}/tmp" "${MAILDIR}/NEWSLETTERS.Fedora.list/"

Ich bekomme, wenn ich es richtig verstehen einen Fehler durch safecat. Aber warum? Was mache ich falsch? Der procmail filter an sich scheint anzuspringen.

Danke für die Hilfe!!

oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim

Re: Procmal filterung für IMAP (safecat Problem?)

Post by oxygen » 2007-11-30 16:13

Das Verzeichnis wo die eMail rein soll, existiert nicht. s.:

procmail: Executing "/usr/bin/safecat,/var/qmail/mailnames/****.com/info/Maildir/tmp,/var/qmail/mailnames/grams-it.com/info/Maildir/NEWSLETTERS.Fedora.list/"
safecat: fatal: could not stat directory: file does not exist