關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 為 Spamassassin 加入 rules

    Posted on May 20th, 2006 Sam Tang No comments

    Spamassassin 可以加入不同的 rules,以更有效阻檔垃圾電郵,以下網站有很多現成的 rules 可以下載,把 rules 放到 /etc/mail/spamassassin 目錄下面,然後重新啟動 spamassassin 即可:

    SpamAssassin 官方網站
    Rules Emporium

    我自己是用以下幾個 rules,其中最後一個是針對中文 spam 而設:

    http://mywebpages.comcast.net/mkettler/sa/antidrug.cf

    http://www.emtinc.net/includes/backhair.cf

    http://www.timj.co.uk/linux/bogus-virus-warnings.cf

    http://www.emtinc.net/includes/chickenpox.cf

    http://www.sa-blacklist.stearns.org/sa-blacklist/sa-blacklist.current.uri.cf

    http://www.sa-blacklist.stearns.org/sa-blacklist/random.current.cf

    http://www.rulesemporium.com/rules/99_FVGT_Tripwire.cf

    http://www.nospamtoday.com/download/mime_validate.cf

    http://www.ccert.edu.cn/spam/sa/Chinese_rules.cf

    然後重新啟動 Spamassassin,方法如下:

    Redhat / Fedora:
    /etc/rc.d/init.d/spamassassin restart

    Debian:
    /etc/init.d/rc.spamd restart

    FreeBSD:
    /usr/local/etc/rc.d/spamd.sh restart


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word