mailscanner参数

 

�g者  林毓能(Linul) [email protected] 日期 2003/09/05 �g於 [url]http://www.tslg.idv.tw[/url]
所有的�O�O值都包含在 /opt/mailscanner/etc/mailscanner.conf�@���n案中(�S各��套件�O定而有所不同),每一��都��以下的�热葸M
行�f明,如果要使用不同的�O置�n,�修改MailScanner的命令列。
空白列��被忽略,和一�_�^延伸至之後的空白格意思是一�拥模�而�]��t是由�_�^�椤�#』的符��_始,之後的一整行都�樵]
�,所以的�x�的格式都如下所示:
            option = value
�S多的�x�中的��t�O定也可能是包含在特定的�n案中,可以用�砜刂剖褂觅Y�位址(address of messages),或是�哪��IP Address
�淼�message的功能,你���在MailScanner安�b目�中的 etc/rules 目�中�l�F一些MailScanner��t的�例及�f明。
在以下的�f明中,�@些�x�都被使用�型分�,�K列表出�恚�而且同�拥囊理�序排列在mailscanner.conf中。
假若您�X的�@些看起�矸浅6嗟脑�,先不用��心,mailscanner.conf提供了很多��用的�A�O值,你也�S只需要修改些�S部份就可以
�_始使用MailScanner了。
 
  • 系�y�O定  (System settings)
  • �理 incoming�]件 (Processing incoming mail)
  • 病毒�呙杓叭觞c�y� (Virus scanning and vulnerability testing)
  • 移除危�U的及��在的攻��热� (Removing dangerous or potentially offensive content)
  • 附件�n的�_�J (Attachment filename checking)
  • �蟾婕盎�� (Reports and responses)
  • 改��息表�^ (Changes to message headers)
  • 改�主旨列 (Changes to the Subject: line)
  • 改��息主�w�热� (Changes to the message body)
  • �]件存�n及�O控 (Mail archiving and monitoring)
  • 通知系�y管理者 (Notices to system administrators)
  • 定�x病毒�呙枰�擎及�V告信��y(spam detectors)�O定 (Definitions of virus scanners and spam detectors)
  • �V告信��y及列表(DNS阻�n列表) (Spam detection and spam lists (DNS blocklists))
  • SpamAssassin�O定 (SpamAssassin)
  • 如何�理spam (What to do with spam)
  • 系�y���O定 (System logging)
  • �M�A�O定 (Advanced settings)
  • 附件�n名��t (Attachment Filename Ruleset)

系�y�O定(System Settings)

                                        Max Children
                                                    Default: 5
 
                                                    MailScanner��使用你的伺服器在同一�r�g�扔行У倪M行好���行程�硖�理(processing)�]
                                                    件,�@���O定就是�O置同�r�M行的行程�担�假�O你�理非常多的�]件,�{高�@���底��
                                                    �δ愕乃欧�器性能��有改�,一��好的�底��被�O定成每��CPU可同�r�理5��行程,
                                                    所以假�O你�碛兴��CPU的�,可以�O定��20。
 
                                        Run As User
 
                                                    Default不要改�此使用者
 
                                                    提供�oExim的使用者(�^不要使用 root 作�� sendmail 的使用者),�@���x�是改��\
                                                    行 MailScanner 的使用者。
 
                                        Run As Group
 
                                                    Default 不要改�此群�M
 
                                                              提供�oExim的使用者(�^�Σ灰�使用 root 作�� sendmail 的使用者),�@���x�是改��\
                                                              行 MailScanner 的群�M。
 
                                        Incoming queue dir
 
                                                    Default: /var/spool/mqueue.in
 
                                                    MailScanner ��呙璧泥]件目�。
 
                                        Outgoing queue dir
 
                                                    Default: /var/spool/mqueue
 
                                                    MailScanner 所�呙柽^後的�]件目�。
 
                                        Incoming work dir
 
                                                    Default: /opt/MailScanner/var/incoming
 
                                                    在�M行�呙�幼鞯钠陂g,用�矸胖帽唤�嚎s的 MIME �息的�捍婺夸�。
 
                                        Quarantine dir
   
                                                    Default: /opt/MailScanner/var/quarantine
 
                                                    一��放置感染病毒的�]件中被隔�x附件的目�。
 
                                        PID dir
 
                                                    Default: /opt/MailScanner/var
 
                                                    存放 MailScanner 行程 id �n的目�。
 
                                        MTA
 
                                                    Default: sendmail (sendmail 或 Exim)
 
                                                    指定要使用那��MTA套件。
 
                                        Sendmail
 
                                                    Default: /usr/lib/sendmail
 
                                                    Sendmail 的程式位置。
 
                                        Sendmail2
 
                                                    Default是 Sendmail�@���x�的�O置
 
                                                    使用在�魉� outgoing/cleaned �息的��B下(MailScanner有分 incoming 及 outgoing 的模
                                                    式)。提供�oExim使用者,所以他��可以指定一��不同的exim.conf�n,用�磙D送outgoing
                                                    的�辛小�

�理 Incoming (Processing Incoming Mail)

                                        Max Unscanned Bytes Per Scan
 
                                                            Default: 100000000
                                                              MailSanner �榱诵�能,以一批��挝�硖�理�息(messages),�� incoming queue 目�收集
                                                              �Y�(使用�栏竦娜掌谂判�),一次一��直到�@��或下面的三���x�到�_�O限,或是目�
                                                              (queue)�榭眨��@���O定限制了每批�息最大要多少才可不被�呙琛�
                                        Max Unsafe Bytes Per Scan
 
                                                             Default: 50000000
                                                             �@���O定限制了每一批被�呙璧挠�息的最大大小。
                                        Max Unscanned Messages Per Scan
                                                             Default: 100
 
                                                             �@���O定限制了每一批�息的�的恳�多少才不被�呙琛�
                                        Max Unsafe Messages Per Scan
                                                            Default: 100
 
                                                            �@��值定�x了��一批�息一�K被�理�r的最大大小�楹危�假如你在你的伺服器上有著�
                                                            理�息速度不�蚩斓���},你也�S可以使用�@���x�去改善情�r。
                                        Expand TNEF
 
                                                            Default: yes
                                                            我���使用一��外部的 TNEF 解�g器��? TNEF 解�g器是被建立在 Sophos 和 McAfee 中
                                                            的,所以�f�@���x���於�碛�Sophos/McAfee 的使用者����O定�� "no",��於其他的使用
                                                            者����O定�� "yes"。
                                        Deliver Unparsable TNEF
 
                                                   Default: no
                                                             一些 Microsoft Outlook版本���a生�碛泻芏� Text 格式的附件,�@些附件目前�K不能被完
                                                             全的解�g,�⑦@���x��O定�� "yes" 是使用�^早的版本性能去可被允�S的相容性,��@
                                                             些附件可以被�D送,�裼眠@��方法��使病毒藉由一�c�p微的�C��,或是附件的片段�n案
                                                             �聿啬洌�而不被��y到,但�@���O定也�S��於使用大量的 Microsoft Outlook 的用�羰潜�
                                                             需的。
 
                                        TNEF Expander
                                                   Default: /opt/mailscanner/bin/tnef
                       
                                                   MS-TNEF expander/decoder 程式的完整路�剑�或者是取代前者,��制�x�袷褂� Perl
                                                   Convert::TNEF 模�M程式的�Z法。
 
                                        TNEF Timeout
 
                                                   Default: 120
           
                                                   TNEF 在解�g一�� Microsoft Outlook 附件�r,所被允�S的最大�r�g(秒)。
 
                                        Block Encrypted Messages
 
                                                   Default: no
 
                                                   �@是�A期在正常的��r下,使用�@���O置�� "no" �r,你的用�舨��有�[藏�]件位置�砑�
                                                   信的��r,因�檫@���x����㈦[藏�]件位置的信件�跸隆�
 
                                        Block Unencrypted Messages
 
                                                   Default: no
       
                                                   �@是�A期在正常的��r下,使用�@���O置�� "no" �r,你的用���在寄送前�⑧]件加密才
                                                   送出,因�檫@���x�����]有加密的信件�跸隆�

病毒�呙杓叭觞c�y� (Virus Scanning and Vulnerability Testing)

        Virus Scanning
 
            Default: yes
                      �呙栲]件病毒��? 若�⒋诉x��O定�� "no" ��完全�P�]病毒�呙璧墓δ堋�
 
        Virus Scanners
            Default: none(sophos, mcafee, command, kaspersky, inoculate, inoculan, nod32, f-prot, f-secure, antivir, panda, rav, none)
 
            指定你要使用那�� anti-viurs的套件。
                      注意:假如你要使用好���套件,�用空白�I�⒚恳��名�Q分�_。
 
        Virus Scanner Timeout
 
            Default: 300
 
            Virus Scsnner �呙枰唤M�息的最大�r�g(秒)。
 
        Deliver Disinfected Files
 
            Default: yes
                      ��一��被感染的文件被解毒成功後,是否要�⒅�寄回原�淼哪康牡�?
        Silent Viruses
                      Default: Klez Yaha−E Bugbear Braid−A WinEvar
       
                      ��病毒�蟾娴馁Y�含有以下列表的字�r,���被��成 "�o�B病毒(Silent Viruses)" ��Υ�,不��有任何的�]件�鹘o原��
                      的收件人,能否�D送�@��]件,是被下一���x�(Still Deliver Silent Viruses)所�Q定,�@���x�的�A�O值先�O定成 "Klez"
                      及 "Bugbear",由於�@�煞N病毒���卧�碓次恢罚�所以寄回警告�息是毫�o意�x的,因�樵���H上它不��被送回�o�l
                      信人。
        Still Deliver Silent Viruses
 
                  Default: yes
                      如果�@���x��O定�� "yes" 的�r候,解毒後的�]件�是���骰亟o原始的收信人,即使�@些位址是被那些被感染的PC使
                      用�S�C的方式�x出�淼模�而且�K不是那些使用者想寄的,�O定此�x��� "yes" ���你的使用者知道你的 MailScanner是
                      有在保�o他��的,但是如果有�S多人抱怨收到太多的病毒通知�r,那就�O定�� "no" 吧。

 

移除危�U及��在的攻��热� (Removing Dangerous or Potentially Offensive Content)

        Allow Partial Messages
   
            Default: no
 
            你要允�S一��只包含片段附件的不完整的�息��? 不完整的�息��然不能被�叱鲇胁《荆�就如同每次�理都只有片段
                      的�Y�,不的有完整的�息,�O定�@���x��� "no" 是一件『非常危�U』的事,因�樗�允�S病毒存在�炔浚�但是你可
            以使用一些��t去�O定特定使用者允�S�@���x�。
 
        Allow External Message Bodiees
 
            Default is no
 
            �@是一��技巧,但非常少用到,一���]件�息可以被包含在�h端的伺服器上,而使用者的��用程式可以�⑦h端的�]  
                      件�热菹螺d�K�绦校��F在只有少�蛋姹镜� Netscape 可以支援,而且只有��用�羰褂� IETF �r,我���]有�k法保�^�@些
            下�d的�n案�]有病毒,因�� MailScanner �o法�l�F�@些存在其中的病毒。
                      �O定此�x��� "yes" 是一件『非常危�U』的事,因�榭赡茉谶h端的伺服器中存有病毒。
 
        Allow IFrame Tags
 
            Default:  no
 
            你要允�S HTML中的 <IFrame> �嘶`包含在�]件中��? 允�S各�N的 Microsoft Outlook 安全弱�c不是一��好的主意,但是
                      如果你的信件中�碛写罅看祟�的信件,也�S你必需�⒋诉x��O定�� "yes",否�t你的使用者大概��抱怨�B�B。
 
        Log IFrame Tags
 
            Default: no
   
            你也�S在��你�O定上述�x�(Allow IFrame Tags)�� "no" 後,收到你的使用者抱怨�f他的 HTML信件�o法正常��x,所
                      以你可以�⑶绊��O定�� "yes",而�⒋隧��O定�� "no",�@�幼� MailScanner���⑧]件中的 <IFrame> �嘶`�h除,但是你可
            以�O定一����t去限定特殊�]件位置才可以被允�S使用 <IFrame> �嘶`。
 
        Allow Object Codebase Tags
 
            Default: no
 
            你要允�S HTML中的 <Object Codebase=...> �嘶`包含在�]件中��? 允�S各�N的 Microsoft Outlook 安全弱�c不是一��好的
            主意,�@�e��烈建�h你�⒋诉x��O定�� "no",除非有特�e理由。
 
        Convert Dangerous HTML To Text
 
            Default: no
 
            ��<IFrame> 或是 <Object Codebase=...> �@些HTML�嘶`被允�S�r,你是否要�⑦@些�]件�D�Q成�文字�]件,�@���x�
                      前面的����x�是二�x一的,打�_�@���x���使用�暨x�袢ラ��x文字�热荩�而不��暴露��在的危�C或具攻�粜缘�
            HTML�热荨�
 
        Convert HTML To Text
 
            Default: no
 
            假�O我的用�羰切『�,而且�`反了�定去��x情色之�的�V告�]件,你可以藉由�D�Q所有的 HTML �]件�成�文字
                      �]件的方法�肀Wo他��,HTML的附件不��被影�到,你可以��δ承┦褂谜�碓O定�@���x�,或是不要�D�一些受
            信任位址的�]件,�@���x�也�S是必要的,因�槟阌胸�任去�P心一些你的使用者。
 

附件�n的�_�J (Attachment Filename Checking)

        Filename rules
 
            Default: /opt/MailScanner/etc/filename.rules.conf
            Default Linux: /etc/MailScanner/filename.rules.conf
            Default FreeBSD: /usr/local/etc/MailScanner/filename.rules.conf
 
            附件�n��t�O定的�n案位置。

�蟾婕盎��(Reports and Responses)

        Quarantine Infections
 
            Default: yes
 
            �O定存放受感染及危�U的�]件附件存放目�,如果�]有�O定,它����被�h除,由於一些法律保障�[私�啵�你也�S��
                      ��⑦@��x��O定�� "no"。
 
        Quarantine Whole Message
           
            Default: no
 
            ��一��受感染的�]件存放在 quarantine(隔�x�^) �r,一��完整拷�的版本��被存�n下�恚�除此之外����⑹芨腥镜母�
            件一�愦�n。
                     
        Quarantine Whole Messages As Queue Files
 
            Default: no
 
            ��你用任何理由�⑼暾�的�]件存在 quarantine (隔�x�^)�r,你要用在 queue 原始的�Y料�n(被df2mbox程式�理�^
                      ,可更容易被送至原始收件者)�泶�n,或者是你要使用一��包含�n�^的�]件主�w的常��息?假�O先前的那��
            �x�被�O定成 "no" �r,只��影�到被存�n的�]件及被隔�x的�V告信,但如果先前的�x��� "yes"的�,就���B
                      在隔�x�^中被感染的�n案也影�到。
       
        Language Strings
 
                                Default: /opt/MailScanner/etc/reports/en/languages.conf
                                Default Linux: /etc/MailScanner/reports/en/languages.conf
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/languages.conf
           
                                �O定���l�F所有的字串�r可被以翻�g的�Z系,�@���O定也可以使用�n案去��做一��定�x��t的方法,所以你可
                                在不同的�]件中定�x不同�Z系,在�A�O的�n案中��有�易的�例。                           
                Deleted Bad Filename Message Repor
 
                      Default: /opt/MailScanner/etc/reports/en/deleted.filename.message.txt
                      Default Linux: /etc/MailScanner/reports/en/deleted.filename.message.txt
                      Default FreeBSD: /usr/local/share/MailScanner/reports/en/deleted.filename.message.txt
                                ��一���]件的附件�n�]有有效的通�^�n案�^�V的��t而被�h除�r,被�h除的�n案��被�x�中所�O定的�n案所取
                                代,在�A�O的�n案中��有�易的�例。
 
                Deleted Virus Message Report
 
                                Default: /opt/MailScanner/etc/reports/en/deleted.virus.message.txt
                                Default Linux: /etc/MailScanner/reports/en/deleted.virus.message.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/deleted.virus.message.txt
 
                                ��一���]件的附件被��y出含有病毒或其他危�U的�热荻�被�h除�r,被�h除的�n案��被�x�中所�O定的�n案所
                                取代,在�A�O的�n案中��有�易的�例。
 
                Stored Bad Filename Message Report
 
                                Default: /opt/MailScanner/etc/reports/en/stored.filename.message.txt
                                Default Linux: /etc/MailScanner/reports/en/stored.filename.message.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/stored.filename.message.txt
 
                                ��一���]件的附件�n�]有有效的通�^�n案�^�V的��t而被�h除�r(而且�@��被�h除的附件被存在隔�x�^),被�h
                                除的�n案��被�x�中所�O定的�n案所取代,在�A�O的�n案中��有�易的�例。
 
                Stored Virus Message Report
 
                                ��一���]件的附件被��y出含有病毒或其他危�U的�热荻�被�h除�r(而且�@��被�h除的附件被存在隔�x�^),被
                                �h除的�n案��被�x�中所�O定的�n案所取代,在�A�O的�n案中��有�易的�例。
 
                Disinfected Report
 
                                Default: /opt/MailScanner/etc/reports/en/disinfected.report.txt
                                Default Linux: /etc/MailScanner/reports/en/disinfected.report.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/disinfected.report.txt
 
                                �e��例子�碚f,�� Microsoft Word 的巨集病毒�囊���]件中被安全的移除後,�@���]件被完整的保留下�恚���
                                在寄�o原�淼氖占�者�r,�@���x�的�n案�热��被放在�]件的主�w中,用�硗ㄖ�收件者�l生了什�N事情。
 
                Inline HTML Signature                                
 
                                Default: /opt/MailScanner/etc/reports/en/inline.sig.html
                                Default Linux: /etc/MailScanner/reports/en/inline.sig.html
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/inline.sig.html
 
                                假�O "Sign Clean Messages" �@���x�被��樱��� MailScanner 完成此�]件的�呙�r,��加�]�名在每���]件的�Y
                                尾,你可以利用�@���x�通知你的使用者,代表�@���]件已�被�呙瑁�你也可增加任何你拒�^�拇瞬克欧�器��
                                送的�Y�在此�n中,�@���n案的�热菔且�符合插入到一�� HTML �n案中。
                           
                    Inline Text Signature
 
                                Default: /opt/MailScanner/etc/reports/en/inline.sig.txt
                                Default Linux: /etc/MailScanner/reports/en/inline.sig.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/inline.sig.txt
 
                                假�O "Sign Clean Messages" �@���x�被��樱��� MailScanner 完成此�]件的�呙�r,��加�]�名在每���]件的�Y
                                尾,你可以利用�@���x�通知你的使用者,代表�@���]件已�被�呙瑁�你也可增加任何你拒�^�拇瞬克欧�器��
                                送的�Y�在此�n中,�@���n案的�热菔且�符合插入到一�� Text �n案中。
                          
                    Inline HTML Warning Inline Text Warning
 
                                ��一���]件的附件被移除了之後,�@���x�的�n案�热��被插入到�]件主�w的�_�^去告知�@��收信人��x病毒
                                警告附件�n "VirusWarning.txt",此�n包含了病毒�蟾妗�
 
                Sender Error Report
 
                                Default: /opt/MailScanner/etc/reports/en/sender.error.report.txt
                                Default Linux: /etc/MailScanner/reports/en/sender.error.report.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.error.report.txt
 
                                ��一���]件基於一些原因�o法完整的被�呙瑁�例如不完整的�息�Y��,或者是不能��x的 winmail.dat TNEF附
                                件格式,那�N�@���x��O定的�n案��被寄回�o寄件者,在�A�O的�n案中��有�易的�例。
 
                Sender Bad Filename Report
 
                                Default: /opt/MailScanner/etc/reports/en/sender.filename.report.txt
                                Default Linux: /etc/MailScanner/reports/en/sender.filename.report.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.filename.report.txt
 
                                ��一���]件的附件被�n案��t所限制�r,�@���x�的�n案��被寄回�o寄件者。
 
                Sender Virus Report
 
                                Default: /opt/MailScanner/etc/reports/en/sender.virus.report.txt
                                Default Linux: /etc/MailScanner/reports/en/sender.virus.report.txt
                                Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.virus.report.txt
       
                                ��一���]件的附件因�楦腥静《径�被�h除�r,�@���x�的�n案��被寄回�o寄件者。
                Hide Incoming Work Dir
 
                         Default: yes
 
                                ���@���x��O定�� "yes" 的�r候,病毒在哪��目�被�l�F的完整路���在回�蠼o使用者的�息中被移除,�@使
                      得�@��感染�蟾��容易了解的多。

改��息表�^(Changes to Message Headers)

                Mail header
 
                      Default: X-MailScanner:
 
                      ��所有的�]件被�呙柽^後,���加入�~外的表�^�n被加入,你也�S要加入你�W站的�s��,所以你可利       
                      用 MailScanner�磉M行�@���幼鳌�
            
                Spam Header
 
                      Default: X-MailScanner-SpamCheck:
                                在��y出�]件��V告信�r,加入此封�]件表�^的文字�热荨�
   
                Spam Score Header
                      Default: X-MailScanner-SpamScore:
 
                      假如 "Spam Score" �@���x�被�O定�� "yes" �r,就代表�@��表�^��使用列表中的字元。
 
                Information Header
 
                      Default is X-MailScanner-Information:
                               
                                加入至所有�]件表�^的文字�热荩�用�硖峁┮����蔚� URL,或是��j�Y�,如果你不想要�@��表�^,
                                只要把�x�空白即可。
                                                   
                Detailed Spam Report
                      Default: yes
                               
                                如果�@���x��O定�� "yes",你���收到完整的�V告信�蟾妫�如果�O定�� "no",那�N你只��得到一              
                                �� "spam" 或者是 "not spam" 的�蟾妫��@�����H的�热菘梢葬��δ愕恼Z系�O定在 languages.conf中。
 
                Spam Score Character
   
                                          Default: s
 
                                          如果�x� "Spam Score" 被�O定�� "yes" 的�,那�N�@���x�的字元就��被替�Q在"Spam Score Header" 中。
         
                              Clean Header Value
 
                                          Default: Found to be clean
           
                                          �@是��在�l�F在某些有危�U�热莸泥]件中有病毒,�K完全清除後,被加在 "Mail Header" 中的文字。
 
                        Infected Header Value
 
                                          Default: Found to be infected
 
                                          �@是���l�F在某些危�U�热莸泥]件中被感染病毒�r,被加在 "Mail Header" 中的文字。
 
                        Disinfected Header Value
 
                                          Default: Disinfected
               
                                          �@是�� MailScanner 把包含了巨集病毒的�]件完全解毒成功後,被加在 "Mail Header" 中的文字,�]件��被
                                          完整的寄到原�淼氖招湃恕�
 
                        Information Header Value
 
                                          Default: Please contact the ISP for more information
 
                                          �@是在�]件通�^ MailScanner 的�呙栳幔�提供一���Y��o使用者的�x�,它是被加在 "Information Header"
                                          的文字,通常是用�硖峁┦褂谜呗��j ISP 或是�W管人�T的�Y�。
 
                        Multiple Headers
 
                                          Default: append
 
                                          如果�]件在你的伺服器上通�^多�� MailScanner 的套件��y後,它������D在每封�]件的表�^上加上本身
                                          的�息,�@���x�(append)控制著���]件表�^被被加入其他�热葆幔���再��D加入我��的文字�Y�在此�]
                                          件的表�^中。
 
                        Hostname
 
                                          Default: the MailScanner
 
                                          �@是放在送�o使用者的�息中 MailScanner 伺服器的名�Q,如果�碛卸�� MailScanner 伺服器在同一��站
                                          台,你必需要���e的去改�每��伺服器的名�Q。
 
                        Sign Messsages Already Processed
 
                                          Default: no
 
                                          ��在同一��伺服器中,�e的 MailScanner 伺服器已��理�^�@封�]件,而且 "Inline HTML/Text Signature"
                                          �K不��被再一次的加入到�]件中(���O定�� "no" �r)。
         
                              Sign Clean Messages
 
                                          Default: no
 
                                          如果�@���x�被�O定�� "yes",那�N "Inline HTML/Text Signature" 就��被加入到已被 MailScanner 清除乾�Q
                                          的�]件中,你可以使用�@���x�去通知收信人,�f�@���]件已被�_�J�o�`,�K可以加入任何合法�幼骷�
                                          版�嗾f明。
 
                        Mark Infected Messages
 
                                          Default: yes
 
                                          如果�@���x�被�O定�� "yes",那�N���l�F�]件中毒而被移除附件�r "Inline HTML/Text Warning" ��被加到
                                          每���]件的�_�^,�@可以用�硗ㄖ�收信者去��x那些替代原本被感染的附件的感染�蟾�n案。
 
                        Mark Unscanned Messages
 
                                          Default: yes
 
                                          如果�@���x�被�O定�� "yes",那些�]被 MailScanner �呙璧泥]件,����包含�x� "Unscanned Header
                                          Value" 的字串加入到 "Mail Header" 中,�@可用�硗ㄖ�你的使用者不要去使用�@���]件。
        
                              Unscanned Header Value
 
                                          Default: Not scanned: please contact your Internet E−Mail Service Provider for details
 
                                          �@是���]件�]有被�呙�r,"Mail Header" 中的�息,如果 "Mark Unscanned Messages" �x��O定�� "yes" 的
                                          �,就���⑦@���息插入到�]件去通知使用者不要使用�@���]件。
 
                        Deliver Cleaned Messages
 
                                          Default: yes
 
                                          ��一��感染病毒的�]件被完整的解毒乾�Q後,若此�x��O定�� "yes",�t�是���⑧]件寄�o原�淼氖招湃�
                                          ,如果你要使用�似先前的 MailScaner 版本中 "Deliver From Local Domains" 的�P�I字,那�N你就必需�O定
                                          一����t,那就是���O定�� "yes" �r,只能�D送�]件至�炔烤W路, "no" �r只能�D送�]件至外部。
 
                        Notify Senders
 
                                          Default: yes
 
                                          如果�@���x�被�O定�� "yes",那就���骰匾��中毒�息�o原寄件人,�@��文字��包含 "Sender Reports" 描
                                          述,��更容易的了解�息�热荨�
 
                        Never Notify Senders Of Precedence
   
                                          Default: list bulk
                                       
                                          �@是一��用空白�I分�_的�息,�K且是 "Precedence:" 表�^值,假如你收到了一���阂獾挠卸距]件,���@
                                          寄件者被列入 "Precedence:" 表�^列中的�,一般�碚f MailScanner ��停止回���o�@��寄件人,�@通常是用
                                          在��一��伺服器�]人管理�r,� MailScanner 停止�o�^的回��。
  

改�主旨列(Changes to the Subject: Line)

                        Scanned Modify Subject
                                          Default: no # end
 
                                          如果�@被�O定成 " start" 或是  " end",那�N " Scanned Subject Text" �@��文字�热菥��被插入在�_�^,或是
                                          �Y尾的主旨列中了,�@只���l生在主旨列�]被其他原因更改的��r下。
                        Scanned Subject Text
                                          Default: {Scanned}
 
                                          �@是�� " Scanned Modify Subject" �x�被�x�襻幔�插入在�_�^或�Y尾的主旨列中的�热荨�          
                        Virus Modify Subject
                                          Default: yes
                                       
                                          如果�@���x�被�O定�� "yes",那�N�@��被感染病毒的�]件主旨列��被插入�x� "Virus Subject Text" 中的
                                          文字,在主旨的�_�^。
           
                              Virus Subject Text
 
                                          Default: {Virus?}
 
                                          �@是 "Virus Modify Subject" �x�中,插入主旨列�_�^的文字�热荨�
 
                        Filename Modify Subject
 
                                          Default: yes
 
                                          如果�@���x�被�O定�� "yes",那�N�]件中有著危�U附件,�K被移除掉的主旨中,��在�_�^被插入 "Virus
                                          Subject Text" 的文字�热荨�
 
                        Filename Subject Text
 
                                          Default: yes
 
                                          �@是在�x�  "Filename Modify Subject" �O定�� "yes" 插入在主旨列�_�^的文字。
 
                        Spam Modify Subject
 
                                          Default: yes
 
                                          如果�@���x�被�O定�� "yes",那�N被��y��V告信的主旨列都��都被插入�x� "Spam Subject Text" 的文
                                          字,在主旨列�_�^。
 
                        Spam Subject Text
 
                                          Default: {Spam?}
 
                                          �@是�x� "Spam Modify Subject" �O定�� "yes" �r,插入在主旨列�_�^的文字。
 
                        High Scoring Spam Modify Subject
 
                                          Default: yes
 
                                          如果�@���x�被�O定�� "yes",那�N被定�x��V告信,�K且 SpamAssassin �盗看箪哆x� "High
                                          SpamAssassin Score" �r,就都在主旨的�_�^插入�x� "High Scoring Spam Subject Text" 的文字。
 
                        High Scoring Spam Subject Text
 
                                          Default: {Spam?}
 
                                          �@是�x� "High Scoring Spam Modify Subject" �O定�� "yes" �r,插入在主旨列�_�^的文字。
 

改��息主�w(Changes to the Message Body)

 
                        Warning Is Attachment
                                                   
                                                    Default: yes
       
                                                    ��一���]件中毒的附件被�Q成感染通知�息的�n案�r,在�@���x��O定�� "yes" �r,是用附件的方
                                                    式,若�O定�� "no",�t是直接加入在�]件本文中。
 
                                Attachment Warning Filename
 
                                          Default: VirusWarning.txt
 
                                                    ��一���]件中毒的附件被�Q成感染通知�息的�n案�r,�@是加入到�]件中的�n案名�Q。
 
                                Attachment Encoding Charset
 
                                                    Default: us−ascii
 
                                                    �@是用�碓O定 "VirusWarning.txt" 文件中的字元��a名�Q,如果你不是用英�Z,而是用其他的�Z言,
                                                    也�S可以使用 "ISO-8859-1"。

 

�]件存�n及�O控(Mail Archiving and Monitoring)

                                Archive Mail
                                                    Default:
   
                                                    �@���x�提供了一��目�或是�]件的位置列表,用�硌}�u一分�]件,你可以�O定正�_�O定你要的�
                                                    �t,只有寄出或收信的哪些可靠用�羿]件才��被存�n,注意�@�可娴剿饺穗[私的���},你必需要知
                                                    道你在做什�N�幼鳌�

 

通知系�y管理者(Notices to System Administrators)

                                Send Notices
                                                    Default: yes
 
                                                    每件每感染的�]件都要�l通知�o系�y管理者��?
 
                                Notices Include Full Headers
 
                                                    Default: no
 
                                                    如果�@���x�被�O定�� "yes",那�N送�o系�y管理者的病毒通知���包含完整的表�^,如果�x��O
                                                    定成 "no",那�N只有受限格式的表�^包含在病毒通知中。
 
                                Hide Incoming Work Dir in Notices
 
                                                    Default: no
 
                                                    如果�@���x�被�O定�� "no",那�N在寄�o系�y管理者的病毒通知中就��包含在哪��目��l�F病毒
                                                    的�Y�,�@��管理者�碚f更好了解病毒�Y�。
 
                                Notice Signature
 
                                                    Default: −− \nMailScanner\nEmail Virus Scanner\nwww.mailscanner.info
 
                                                    �@���名��被放到寄�o系�y管理者通知的文件底部,��被 MailScanner 使用 "\n" 插入 "line-breaks" or
                                                    "newline" 空白或�Q行字元。
 
                                Notices From
 
                                          Default: MailScanner
 
                                                    用在可�的�]件通知位址 "From:"  的部份中,而 <user@domain> 的部份�t是被�O成�x� "Local
                                                    Postmaster" 的�热荨�
 
                                Notices To
 
                                                    Default: postmaster
 
                                                    �@是�x�是提供是由哪些位址寄送通知出�淼�?你可以�O定一����t,用�硖峁┰诓煌�的 domain 使
                                                    用不同的通知位址。
                                       
                                        Local Postmaster
 
                                                    Default: postmaster
 
                                                    ��一��病毒警告被寄送到任何使用者�r,�@��寄件�]件都��用 "From:" 放在表�^�n。

 

定�x病毒�呙枰�擎及�V告信��y(spam detectors)�O定(Definitions of Virus Scanners and Spam Detectors)

                                Spam List Definitions
                                                    Default: /opt/MailScanner/etc/spam.lists.conf
                                                    Defualt Linux: /etc/MailScanner/spam.lists.conf
                                                    Default FreeBSD: /usr/local/etc/MailScanner/spam.lists.conf
                                                   
                                                    �@���n案包含了所有能被��y��V告信信�碓吹� "Spam Lists" (同�咏凶� RBL's or DNSBL's),�S多的
                                                    Spam Lists 都可被加入到�@���n案中,但它一�_始已�包含了大部份的�V告信列表(Spam Lists)。
 
                                Virus Scanner Definitions
 
                                                    Default: /opt/MailScanner/etc/virus.scanners.conf
                                                    Default Linux: /etc/MailScanner/virus.scanners.conf
                                                    Default FreeBSD: /usr/local/etc/MailScanner/virus.scanners.conf
 
                                                    �@���n案包含了所有 virus scanner 指令的位置,在��� MailScanner 前先�_�J�@���n案是否正�_,否
                                                    �t你的 MailScanner 可能�o法��印�

 

�V告信��y及列表(DNS阻�n列表)(Spam Detection and Spam Lists (DNS Blocklists))

                                Spam Checks
                                                    Default: yes
                       
                                                    如果�@���x�被�O定�� "yes",那�N�]件都��被�_�J是否��V告信件。
 
                                Spam List
 
                                                    Default: ORDB−RBL Infinite−Monkeys
 
                                                    �@���x�提供了一��用空白�I�矸珠_的 "Spam Lists"( 或 RBL's or DNSBL's)列表,�泶_�J每��   
                                                    �]件是否��V告信件,�@��列表是用 IP Address �肀硎臼悄切┪恢芳男沤o你的 MailScanner 伺
                                                    服器,每��用在�@的列表必�被定�x在之前被提到的�x� "Spam List Definitions" �n案中。
 
                                Spam Domain List
                       
                                                              Default:
 
                                                              �@���x�提供了一��用空白�I�矸珠_的 "Spam Lists"( 或 RBL's or DNSBL's)列表,�泶_�J每��
                                                              �]件是否��V告信件,�@��列表是用 domain name �肀硎臼悄切┪恢芳男沤o你的 MailScanner
                                                              伺服器,每��用在�@的列表必�被定�x在之前被提到的�x� "Spam List Definitions" �n案中。
 
                                        Spam List Timeout
 
                                                              Default: 10
 
                                                              �@是代表在每��出�F在  "Spam List" 列表中的�]件在��y後能等得的秒�担�如果超�^�@���r
                                                              �g,那�N�]件��被�h除�K忽略。
 
                                        Max Spam List Timeouts
 
                                                              Default: 7
 
                                                              如果在��y "Spam List" 列表中的�]件超�^七次一直�]有成功�^�r,那�N一般就是 "Spam List"
                                                              列表不能被�x取,�� MailScanner 在�敌�r重新��釉�敌�r後,它��再���使用一次�@��列
                                                              表,免得服���好恢�土恕�
 
                                        Is Definitely Not Spam
 
                                                              Default: /opt/MailScanner/etc/rules/spam.whitelist.rules
                                                              Default Linux: /etc/MailScanner/rules/spam.whitelist.rules
                                                              Default FreeBSD: /usr/local/etc/MailScanner/rules/spam.whitelist.rules
 
                                                              �@���x�通常都是一整����t,任何�]件通�^�@����t的�Y果若�� "yes" 的�,就不��被�成
                                                              �V告信件,�@����t通常都是建立一��非�V告信的 "清��(whitelist)",你也�S可以包含一些你
                                                              自已的站台,在�@����t�n中。
 
                                        Is Definitely Spam
 
                                                              Default: no
 
                                                              �@���x�通常都是一整����t,任何�]件通�^�@����t的�Y果若�� "yes" 的�,就��被�成�V
                                                              告信件,�@����t通常都是建立一��已知的�V告信的 "黑名��(blacklist)"。

 

SpamAssassin�O定(SpamAssassin)

                                        Use SpamAssassin
                                                              Default: no
 
                                                              你要使用 SpamAssassin 套件���y�V告信件��? 你必�A先安�b SpamAssassin 才可以正常的在
                                                              MailScanner 中使用�@���x�。
 
                                        Max SpamAssassin Size
 
                                                              Default: 90000
 
                                                              SpamAssassin 在�理每���]件就��非常�慢,反覆的工作是�����},�@���x�提供了每��被
                                                              SpamAssassin �理的�]件的最大大小,最大的�V告信目前被�l�F的大小�� 50,000 bytes。
 
                                        Required SpamAssassin Score
 
                                                              Default: 5
 
                                                              �@���x��O定了最小的 SpamAssassin ��值者��V告信,它取代了 SpamAssassin �碛�
                                                              的 "required_hits" �抵担�所以�@����t可以�O定不同值至不同的使用者及 domains。
 
                                        High SpamAssassin Score
 
                                                              Default: 20
 
                                                              ���]件的 SpamAssassin ��值大於�@���x��O定值�r,一��不同的 "Spam Actions" �O定��被
                                                              �m用於�]件��最小的此值。
 
                                        SpamAssassin Auto Whitelist
 
                                                              Default: no
 
                                                              SpamAssassin 有��特色就是可以�y量�牟煌�位址�l出的�V告信及非�V告信的比率,如果寄信
                                                              位的信件大多不��V告信,系�y��自�拥脑黾游恢分了�本身�碛械姆�V告信清��(whitelist),
                                                              �@���x��_�⒘� SpamAssassin 的特色。
 
                                        SpamAssassin Prefs File
 
                                                              Default: /opt/MailScanner/etc/spam.assassin.prefs.conf
                                                              Default Linux: /etc/MailScanner/spam.assassin.prefs.conf
                                                              Default FreeBSD: /usr/local/etc/MailScanner/spam.assassin.prefs.conf
 
                                                              SpamAssassin 使用了一�� "使用者喜好值" 的�n案,�@���n案可被用�碓O定各�N SpamAssassin
                                                              的值,�x�中就是此�n案的名�Q,�@�� RBL/DNSBL/"Spam List" 最有用的特色就是可以利用
                                                              SpamAssassin �泶_�J可以�P�]那些已�被 MailScanner �_�J�^一次的�]件�^�V�x�,避免再被
                                                              �^�V一次。
 
                                        SpamAssassin Timeout
 
                                                              Default: 30
 
                                                              �@���x�是�O定每��被 SpamAssassin �理的�]件的最大等待�r�g(秒),�@可以有效的保�o偶
                                                              而出���}的 SpamAssassin,避它有�r可能��用�敌�r的�r�g去�理一封�]件。
 
                                        Max SpamAssassin Timeouts
 
                                                              Default: 20
 
                                                              如果����B�m二十次呼叫至 SpamAssassin都超出等待�r�g,那�N MailScanner ���Q定�P�]
                                                              SpamAssassin 使得工作�利,它��因此被�P�]�敌�r直到 MailScaner重新��樱�在�@期�g它
                                                              ��一直���。
 
                                        Check SpamAssassin If On Spam List
 
                                                              Default: yes
 
                                                              如果已��余]件 "Spam List" �^�V列表,那�N SpamAssassin 就��被跳�^不�绦校����@���x�在
                                                              被�O定�� "no" 的�r候,�@可以�椭��p少��你使用 SpamAssassin �r所造成的��d。
 
                                        Always Include SpamAssassin Report
 
                                                              Default: no
 
                                                              如果�@���x�被�O定�� "yes" �r,那�N�x�  "Spam Header" 的�热菥��被包含在每���]件的表
                                                              �^中,所以�@是出�F在���o法�^�^使用者的�V告信的��r下。
 
                                        Spam Score
 
                                                              Default: yes
 
                                                              如果一���]件��V告信件,而�@���x�被�O定�� "yes" �r,那�N表�^���被加入到
                                                              SpamAssassin ��中的每一���c含有 1 ��特性的�Y�。�@��允�S使用者去�x�袼���自已的
                                                              SpamAssassin ��,用在不同的��r下,像是存�n或�h除他。

 

如何�理Spam(What to do with Spam)

                                        Spam Actions
                                                              Default: deliver
 
                                                              �@���x�可以�合一��或多��之後的�P�I字�磉_成�理 Spam 的方法。
 
                                                              "deliver" -- �]件正常的�D送至原�淼氖招湃恕�
                                                              "delete"  -- �h除�]件。
                                                              "store" -- �⑧]件存放至隔�x�^。
                                                              "bounce" -- �⑧]件退�o寄信人。
                                                              "forward" -- 提供一�� forward 的�]件位址�o系�y,系�y��自�愚D寄一份。
                                                              "striphtml" -- ��惹� HTML 的�]件�D成 Text,你必需要加入 "deliver",系�y才���湍慵泥]件。
 
                                        High Scoring Spam Actions
 
                                                              Default: deliver
 
                                                              �@和 "Spam Actions" �x�一�樱�但它是��� SpamAssassin ���� "High Scoring" 的�]件。
 
                                        Sender Spam Report
 
                                                              Default: /opt/MailScanner/etc/reports/en/sender.spam.report.txt
                                                              Default Linux: /etc/MailScanner/reports/en/sender.spam.report.txt
                                                              Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.spam.report.txt
 
                                                              ��退信�@���幼鞅� "Spam List" check 及 SpamAssassin 所���r,系�y��寄一���息�n出去。
 
                                        Sender Spam List Report
 
                                                              Default: /opt/MailScanner/etc/reports/en/sender.spam.rbl.report.txt
                                                              Default Linux: /etc/MailScanner/reports/en/sender.spam.rbl.report.txt
                                                              Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.spam.rbl.report.txt
 
                                                              ��退信�@���幼鞅� "Spam List" check 所���r,系�y��寄一���息�n出去。
 
                                        Sender SpamAssassin Report
 
                                                              Default: /opt/MailScanner/etc/reports/en/sender.spam.sa.report.txt
                                                              Default Linux: /etc/MailScanner/reports/en/sender.spam.sa.report.txt
                                                              Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.spam.sa.report.txt
 
                                                              ��退信�@���幼鞅� SpamAssassin 所���r,系�y��寄一���息�n出去。

 

系�y�o��O定(System Logging)

                                        Syslog Facility
                                                              Default: mail
 
                                                  �@是用���� MailScanner ��的使用者名�Q,如果你不知道怎�N�O定,最好是保留,或�⒖�syslogd
                                                  的 man 手�浴�
 
                                        Log Spam
 
                                                              Default: no
 
                                                              如果�@���x�被�O定�� "yes" �r,那�N每���V告信的�息都��被�o�至 syslog中,如果收到了
                                                              大量的�V告信,或是伺服器��d很重�r,你也�S要�⑦@���x��P�],但是你��在��y�V告信
                                                              件�r遇到些麻��,�O定�� "yes" ��r地,可以提供你有效的除�e方向。
 
                                        Log Permitted Filenames
 
                                                              Default: no
 
                                                              如果�@���x�被�O定�� "yes" �r,每��通�^ "filename rules" 的附件�n�n名都��被�o�至 syslog
                                                              中,一般�碚f�@是不必要的,但如果你要除�e�r,也�S�@���x���有用�。

 

�M�A�O定(Advanced Settings)

                                        Debug
                                                              Default: no
 
                                                              �K非�o一般使用者使用,如果�O定�� "yes" 的�,��使 MailScanner �M入除�e模式,它��建立
                                                              些�S不同的�出,而且不���成一�� daemon。
 
                                        Always Looked Up Last
 
                                                              Default: no
 
                                                              ���H上�@���x��奈幢皇褂眠^,但它被�J定�樽钺崽�理一批�]件的方式,�@是被�O定用在一
                                                              ��有副作用的自��B接函�担�有�r它��是有用的,像是�o�大量的一批�]件的�息在一���n
                                                              案或是一�� SQL �Y料�熘小�
 
                                        Deliver In Background
 
                                                              Default: yes
 
                                                              ����D要�D送任何�]件(�� "Delivery Method = batch")�r,sendmail/Exim 命令��在背景�绦校�所
                                                              以 MailScanner 不��去等待�D送�]件的命令完成,�@�e不建�h你�⑺��O定�� "no"。
 
                                        Delivery Method
 
                                                              Default: queue
                       
                                                              假如�@���x��O定�� "batch" �r,那�N MailScanner ����D用一批��挝�硪淮翁�理所有�]件
                                                              假如�@���x��O定�� "queue" �r,那�N MailScanner ���⑧]件放到 queue 目�中,�理完成後
                                                              再�o sendmail/Exim 去�D送�]件,�@����O定��於伺服器的��d��有非常大的影�。
                                        Lockfile Dir
                                                              Default: /tmp
                   
                                                              �@��目�是放置 lock �n案的位置,是用在�� Virus Scanner 在升�病毒�a�r,停止它自本身的
                                                              �幼鳎�如果你改�了�@���n案的位置,那也要去改� "autoupdate" �n的�O定。
 
                                        Lock Type
 
                                                              不要���@���n�M行任何的�O定,除非你�λ�有�^�Φ恼J知。
 
                                        Minimum Code Status
 
                                                              Default: supported
 
                                                              有些 Virus Scanner 不被 MailScanner 的作者支援,而且他��可能是使用�e人提供的程式�a,如
                                                              果�@���x�被�O�e了的�r候,那�N可能就��在 maillog 中得到�e�`的�息,在�@�e�`�息中也
                                                              �S��提供你站台的�Y�,或是一些描述�x�的��,而且也��告�V你那些 Virsu Scanner 才可
                                                              以被 MailScanner 所支援。

 

附件�n名��t(Attachment Filename Ruleset)

 
�@是包含在�O定�n中的�x� "Filename rules" �n案名�Q,此�n案中包含了用�砼卸ㄈ魏伪恢付ǖ母郊��n是要被接受�是拒�^,不管在此��n案中是否含有病毒,�@不能只是被用在�栏竦�y量,像�踝∷�以像�碛懈�n名�� EXE 的�n案,但它可以使用 Perl 的�Z
法�硖峁┕δ埽�像��y��D�[藏的�n案名�Q。
 
�S多 Windows 的�]件程式(例如:Microsoft Outlook)在��D不要阻�K用�羰褂玫那疤嵯拢�都��藏共有文件�n名延伸,�@����t在��
一��附件叫做 " Your Document.doc",被�@示�� " Your Document" �r是有效的,一��更�阂獾母郊�名原本可能�� " Looks Safe.txt.pif"
,而被改成 " Looks Safe.txt",很多使用者��以�樗�就是�� TXT 的�n案,而以�樗�是安全的,所以即使是��有��的使用者,也�S也��去�⑦@���n案使用像 Notepad �@��程式去�_��,然而�@���n案�s是一�� Ms-Dos 快捷�n,�K且可以�绦腥魏稳我獾闹噶睿�而使用者根本不��知情。
 
�@����t是按至�^到尾的�序,在此�n中配合,而每����t�t都是使用一��合�m的文法,每行可以由空白、�]解(�_始是 # 符�)�M成,可以用 TAB�I去�^分每��部份。
    allow / deny
 
    接受或拒�^�n案名�Q。
 
       regular expression
 
    此��t�⒈�绦校�如果附件�n名符合�@����t的�,它可以�S意使用大量的 "/"符�。
 
       log text
 
    如果符合��t,那�N文字��被放在 syslog中,如果�O�� "-" 的�,�]有文字��被�o�。
 
       user text
 
    如果符合��t,那�N文字��被寄到使用者信箱,如果�O�� "-" 的�,不��有文字��被寄送。I
�O定�n example ��示�容易使用的文法。
Julian Field
 
 
 
SPAMASSASSIN 设置(转载)

Spamassassin设置



Spamassassin   (/etc/mail/spamassassin/local.cf )

# SpamAssassin config file for version 3.x
# NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6
# See  [url]http://www.yrex.com/spam/spamconfig25.[/url] ... p;earlier versions
# Generated by  [url]http://www.yrex.com/spam/spamconfig[/url] ... sion 1.50) 

# How many hits before a message is considered spam. 得分多少以上就会被判定为垃圾邮件。
required_hits       6.3

# Whether to change the subject of suspected spam. 在已判定的垃圾邮件之标题加上标记。( 如果 是使用amaivsd来呼叫spamassass进行过滤的,请修改 Amavisd-new 的配置文件amavisd.conf 中的相应选项:$ sa_spam_subject_tag = '***[ Junk Mail ]*** '; )
rewrite_header Subject ****SPAM(_SCORE_)****

# Encapsulate spam in an attachment.
# 要如何处理垃圾邮件。如果邮件还会经过防毒程序的扫描处理,所以必须设定为 0。
# 0:将信息写入邮件表头。
# 1:将垃圾邮件转为附件。
# 2:将垃圾邮件转为纯文字附件。 
report_safe         0

# Use terse version of the spam report. 用精简的方式来回复垃圾邮件信息给管理者
use_terse_report     0

# Enable the Bayes system. 使用贝叶斯学习系统 
use_bayes           1

# Enable Bayes auto-learning. 开启贝叶斯自动学习功能
auto_learn         1

# Enable or Disable network checks. 略过 RBLs 检查、使用 Razor version 2、使用 DCC (Distributed Checksum Clearinghouse)、使用 Pyzor
skip_rbl_checks       0
use_razor2         1
use_dcc           1
use_pyzor           1

# Blacklist. 黑名单,判定�p + 100 分
blacklist_from *@sohu.com *@mailfb.com

# Whitelist . 白名单,判定加 ― 100 分 
whitelist_from *@yahoo.com.tw *@yahoo.com.hk *@yahoogroups.com.hk
whitelist_from  [email protected]

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - chinese
ok_languages         zh en

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales         zh en

# Disabled scores. 防止中文主旨和中文收件者误判,建议再加上下列几行
score HEADER_8BITS 0
score HTML_COMMENT_8BITS 0
score SUBJ_FULL_OF_8BITS 0
score UPPERCASE_25_50 0
score UPPERCASE_50_75 0
score UPPERCASE_75_100 0

# local domain from but ip not match. 域名和 IP 不符合,疑为垃圾邮件
header __FROM_TEATIME Received =~ /from test.com.cn/i
header __FROM_TEATIME_IP Received =~ /[12.34.56.78]/
meta FROM_TEATIME_BUT_IP_ERROR (__FROM_TEATIME)
describe FROM_TEATIME_BUT_IP_ERROR From test.com.cn but ip not match
score FROM_TEATIME_BUT_IP_ERROR 8

score NO_REAL_NAME 4.000
score SPF_FAIL 10.000
score SPF_HELO_FAIL 10.000
score BAYES_99 4.300
score BAYES_90 3.500
score BAYES_80 3.000
Spamassassin 系统设置之 黑白名单 

你可能感兴趣的:(参数,职场,休闲,MailScanner)