• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 垃圾郵件系統配置方案(for postfix 2.0 or later)

    發表于:2007-07-02來源:作者:點擊數: 標簽:
    基本配置篇 說明: 本文檔中所有的配置是假設: postfix is installed in /etc/postfix, and all map or filter files are located in /etc/postfix/maps. 本文檔中各種header和body使用的 regexp (regular expressions)方式. PCRE 方式暫不在考慮范圍內 (1)hea
    基本配置篇
    說明:
    本文檔中所有的配置是假設:
    postfix is installed in /etc/postfix,
    and all map or filter files are located in /etc/postfix/maps.

    本文檔中各種header和body使用的 regexp (regular expressions)方式. PCRE 方式暫不在考慮范圍內

    (1)header checks
    啟用header checks.
     編輯main.cf,增加:
     header_checks = regexp:/etc/postfix/maps/header_checks
     mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks
     
     規則文件的格式:
     /^HEADER: .*content_to_act_on/ ACTION
     詳細描述:
       /^HEADER: .*content_to_act_on/ ACTION
         |      |        |
         a      b        c
         
       a.郵件頭,在郵件過濾中,Subject是人們最常用的郵件頭之一.其他的郵件頭:
       b.指定過濾字段
       c.具體的動作.如:REJECT,IGNORE,WARN,HOLD,DISCARD,FILTER
         c1.
          REJECT
          這是最常用的options,Example:
          /^Subject .*Free Money/ REJECT Spam Header Rule #42
          這樣的規則會丟棄主題中所有包含Free Money的字樣的郵件,同時將會反饋給發送者"Spam Header Rule"消息,在日志中也會有這樣消息記錄
          IGNORE
    http://www.securitysage.com/guides/postfix_anonym.html
          WARN
          這對于測試新的過濾規則是非常有幫助的。
          。。。。。。
    (2)MIME HEADER CHECKS
     /name=[^>]*\.(bat|com|exe)/ REJECT
     這樣得規則會拒絕所有帶bat,com,exe為后綴名文件得郵件。
     
    (3)BODY CHECKS
    啟用Body checks.
     body_checks = regexp:/etc/postfix/maps/body_checks
     
     /content_to_act_on/ ACTION
      詳細描述:
      /content_to_act_on/ ACTION
          |       |
          a       b
        a.過濾實體
        b.動作 REJECT(最常用的),
         /Free Money/ REJECT Spam Body Rule #42
         這樣,在信件正文中遇到Free Money的都會被過濾,同時會向郵件發送者反饋“Spam Body Rule #42”消息,以及在日志中記錄有“Spam Body Rule #42”。
    更多信息請參考:
    http://www.securitysage.com/guides/postfix_uce_full.htm



    系統實踐篇
    說明:
    由于我使用的postfix 1.x的,所有和上面的部分有點出入,但不影響全局。
    一,編輯main.cf,增加1行,以支持header_checks

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>