Re: Integration of maildrop with spamassassin
Dimitri Maziuk <[email protected]>
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
On 08/24/2012 08:31 AM, Jayanta Ghosh wrote:
>
> if ( $SIZE < 204800 )
>
> {
>
> exception {
>
> xfilter "/usr/bin/spamassassin"
>
> }
>
> }
>
> if ( /^X-Spam-Flag: YES/ )
>
> {
>
> exception {
>
> to "/home/jayanta.ghosh/Maildir/.Spam/"
>
> }
>
> }
FWIW my setup is centos 6.3,
maildrop unix - n n - - pipe
flags=DRhu user=daemon argv=/usr/bin/maildrop -d ${recipient}
in /etc/postfix/master.cf,
mailbox_command = /usr/bin/maildrop -d ${USER}
maildrop_destination_recipient_limit = 1
in /etc/postfix/main.cf, filtering rules are in local ~/.mailfilter and
it starts with
import SENDER
DEFAULT="./Maildir"
xfilter "/usr/bin/spamc -f ${SENDER}"
if( /^X-Spam-Level: \*{6,}/ )
{
to "/dev/null"
}
if( /^X-Spam-Level: \*{5,}/ )
{
to "Maildir/.Spam"
}
This works fine.
--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc
(application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFQN6khxzG8ttqkbbgRAuTZAJwPM7eCamA3J0KAuZPmGo+mo+qIwACcCNrW 5Fu76Q0HrlSlQDxW/QPsZE4= =W5NB -----END PGP SIGNATURE-----