| 47 | |
| 48 | == Spam == |
| 49 | |
| 50 | There are two configuration options to handle spam. Both options depend on the {{{ X-Spam-Score }} line in the message header. This line is set by a spam detecting program like ''SpamAssassin''. It count the '''*''' in the {{{ X-Spam-Score}}} line eg: |
| 51 | {{{ |
| 52 | spam_level: 4 |
| 53 | drop_spam: 1 |
| 54 | }}} |
| 55 | This setup drops all email that ''Spam-score'' greater the 4. With this setting the email below is rejected: |
| 56 | {{{ |
| 57 | From lijuydru@example.com Tue Dec 5 12:47:04 2006 |
| 58 | To: test@example.com |
| 59 | Subject: Test |
| 60 | MIME-Version: 1.0 |
| 61 | Content-Type: text/plain; |
| 62 | List-Id: 8 |
| 63 | X-Scanned-By: MIMEDefang 2.56 on 145.100.16.144 |
| 64 | X-Scanned-By: MIMEDefang 2.51 on 145.100.16.26 |
| 65 | X-Scanned-By: MIMEDefang 2.56 on 145.100.16.144 |
| 66 | X-Spam-Score: ***************************** (29.334) BAYES_99, |
| 67 | HELO_DYNAMIC_DHCP,HELO_DYNAMIC_IPADDR,MSGID_FROM_MTA_ID, |
| 68 | RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SORBS_DUL,RCVD_IN_XBL, |
| 69 | SUBJ_ILLEGAL_CHARS, URIBL_JP_SURBL, URIBL_SBL, URIBL_SC_SURBL, |
| 70 | WEIRD_PORT, autolearn=spam |
| 71 | }}} |