關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 關閉個別域名 anti-spam

    Posted on June 26th, 2006 Sam Tang No comments

    我的 email server 是用 SpamAssassin 過濾垃圾電郵,如果要對個別域名關閉過濾功能的話,可以這樣做:

    1. 開啟 /etc/mail/spamassassin/local.cf

    2. 例如要關閉的域名是 mydomain.com,便加入:

    whitelist_to *@mydomain.com

    3. 儲存後重新啟動 SpamSssassin

    以上的 whitelist_to 的作用是如果電郵的 'To:' 及 'Cc:' 字串符合的話,會為電郵加上 100 分,那麼正常這封電郵便不會當成 spam。 (spamassassian 是根據電郵各部份計算分數,到達指定分數便當作為 spam)


    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