Spamassassin: How to delete all spam messages on the server?

Posted by Beck on Server Fault See other posts from Server Fault or by Beck
Published on 2010-12-22T13:19:31Z Indexed on 2010/12/23 20:55 UTC
Read the original article Hit count: 426

Filed under:
|

Can't find out, how to configure spamassassin to delete all spam messages.

Currenly it's only mark messages as spam, but pass them throught IMAP to client.

How to block them from passing through to IMAP clients?

http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.html

And it's blocking some of our notification messages...

-1.4 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 0.0 HTML_MESSAGE           BODY: HTML included in message
 2.4 HTML_IMAGE_ONLY_08     BODY: HTML: images with 400-800 bytes of words
 2.9 TVD_SPACE_RATIO        BODY: TVD_SPACE_RATIO
 1.7 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
 1.1 HTML_MIME_NO_HTML_TAG  HTML-only message, but there is no HTML tag
 1.1 HTML_SHORT_LINK_IMG_1  HTML is very short with a linked image
-1.4 AWL                    AWL: From: address is in the auto white-list

This is what clients getting on their mails in place of our notification messages.

Any idea how to pass those messages through and how to delete incoming spam?

Thanks ;)

I have this setup:

postfix
spamassassin
clamav-daemon
amavis

© Server Fault or respective owner

Related posts about postfix

Related posts about spamassassin