On Mit, 17 Jul 2002, Michael Leone wrote:

>Mike Burger said:
>> if you're using the default behavior of letting SA mark the subject
>> line,  then filtering via postfix works just fine.
>>
>> It might mean, however, that you have to enable procmail as the default
>> MDA in your postfix/main.cf file.
>
>It's not *necessarily* a requirement to use procmail as MDA. I use
>amavisd-new, which calls SA. You could use procmail (system-wide or
>per-user), or maildrop.

The point is, that i have not yet setup procmail - i just just
LMTP-Delivery via Cyrus/IMAP ...

>> Just make sure that you have "mailbox = /usr/bin/procmail" uncommented
>> in  postfix/main.cf, and you should be fine.
>>
>> Then, add:
>>
>> :0:
>> * ^Subject:.*\*\*\*\*SPAM\*\*\*\*\*
>> $HOME/mail/caughtspam (or, /dev/null, if you just want to dump it)
>
>It's easier to just check the X-Spam-Status header (IMO). In maildrop:
>
>if ( /X-Spam-Status: Yes/ )
>to "Maildir/.Spam"

I tried to setup "procmail" for delivery, but then it will be delivered to
/var/spool/mail/cyrus - instead of deliver via cyrus/lmtp ...

Following will NOT work - maybe someone here can help me:

---[/etc/procmailrc]---
DELIVERMAIL="/usr/lib/cyrus/bin/deliver"

MAILBOX=""
DEFAULT=""
INCLUDERC="/etc/imap/procmail/$USER"

LOGFILE="/var/log/procmail.log"

IMAP="/usr/lib/cyrus/bin/deliver -m $MAILBOX -a $USER"
SUB="/usr/lib/cyrus/bin/deliver -a $USER -m $EXT $USER"
#IMAP=/usr/lib/cyrus/bin/deliver -l -e -a $USER -m user.$USER $USER
#IMAP=/usr/lib/cyrus/bin/deliver -l -e -a $USER -m INBOX $USER
#BACKUP="/usr/lib/cyrus/bin/deliver -m $MAILBOX -a $USER"

SPAMIT="/usr/lib/cyrus/bin/deliver -m user.$USER.Spam -a $USER"

:0 c
| /usr/bin/spamassassin -P

:0:
* ^X-Spam-Status: Yes
| $SPAMIT

:0 w
| $SUB

:0 w
| $IMAP
---[cut here]---

And in "/etc/postfix/master.cf" i have:

procmail  unix  -       n       n       -       -       pipe
    flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXT=${extension} 
SENDER=${sender} /etc/procmailrc


Looking forward to any hints/tips and solutions ;)


Greetings,

-- 
Jörg Henner                              Fon:  +49 (7 11) 48 90 83 - 0
ETES - EDV-Systemhaus GbR                Fax:  +49 (7 11) 48 90 83 - 50
Libanonstrasse 58 A * D-70184 Stuttgart  Web: http://www.etes.de


______________________________________
Inflex - eMail Scanning and Protection
Queries to: [EMAIL PROTECTED]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to