View Single Post
Old 25th February 2007, 17:15
aramyegenian aramyegenian is offline
Junior Member
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Here's what I have in my /etc/maildroprc , it might be useful for you. watch the logfile for errors. fyi, it doesn't check if a Junk folder exists, because i have another script that creates the Junk folder each time a new mailbox is created. and spamassassin uses the "s" letter to designate the spam score.

logfile "/var/log/maildroprc.log"
log "Maildir home: $HOME"
log "Username: $LOGNAME"
log "Mailbox: $DEFAULT"
log "Junk folder: $JUNK"
# if more than 5 s letters dump it in the junk folder
if (/.*SpamScore: sssss*/)
log "**JUNK**"
to "$JUNK"
Reply With Quote