Changes of Revision 8
[-] [+] | Changed | qmailadmin.spec |
[-] [+] | Added | qmailadmin.logrotate ^ |
@@ -0,0 +1,9 @@ +/var/log/maildrop/maildrop.log { + compress + dateext + rotate 7 + size=+1024k + notifempty + missingok + create 644 vpopmail vchkpw +} | ||
[-] [+] | Added | qmailadmin.maildrop ^ |
@@ -0,0 +1,31 @@ +############################## +#mailfilter +############################## +import EXT +import HOST +import HOME + + + + +SPAMBOX=".Spam" +VHOME=`/var/vpopmail/bin/vuserinfo -d "$EXT@$HOST"` + +logfile "/var/log/maildrop/maildrop.log" +log "==== BEGIN maildrop processing for $EXT@$HOST ===" + +if ((/^X-Spam-Status:.*YES/)) +{ + `test -d $VHOME/Maildir/.Spam` + if( $RETURNCODE == 1 ) + { + `/usr/bin/maildirmake $VHOME/Maildir/.Spam;chown -R vpopmail.vchkpw $VHOME/Maildir/.Spam` + `echo "INBOX.Spam" >$VHOME/Maildir/courierimapsubscribed` + } + to "$VHOME/Maildir/.Spam/" +} + +to "$VHOME/Maildir/" +######################## +#END +######################## |