<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Money No Honey &#187; MailScanner</title>
	<atom:link href="http://blog.infinity.idv.tw/index.php/category/linux/mailscanner/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infinity.idv.tw</link>
	<description>Just Another Beginning</description>
	<lastBuildDate>Sat, 28 Jan 2012 18:25:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mailscanner取回隔離區的信-Releasing mail from the quarantine</title>
		<link>http://blog.infinity.idv.tw/index.php/2011/03/01/mailscanner%e5%8f%96%e5%9b%9e%e9%9a%94%e9%9b%a2%e5%8d%80%e7%9a%84%e4%bf%a1-releasing-mail-from-the-quarantine/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2011/03/01/mailscanner%e5%8f%96%e5%9b%9e%e9%9a%94%e9%9b%a2%e5%8d%80%e7%9a%84%e4%bf%a1-releasing-mail-from-the-quarantine/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 05:57:32 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[MailScanner 取回 隔離區]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2011/03/01/mailscanner%e5%8f%96%e5%9b%9e%e9%9a%94%e9%9b%a2%e5%8d%80%e7%9a%84%e4%bf%a1-releasing-mail-from-the-quarantine/</guid>
		<description><![CDATA[Releasing mail from the quarantine &#8211; queue files
<p>For the purposes of this, I’m assuming you have set up a single (safe!) postfix instance, with messages going to the HOLD queue, before being processed by MailScanner and sent to the INCOMING queue. You also need to be saving whole messages as queue files. </p>
<p>In MailScanner.conf ensure [...]]]></description>
			<content:encoded><![CDATA[<h3><a name="releasing_mail_from_the_quarantine_-_queue_files">Releasing mail from the quarantine &#8211; queue files</a></h3>
<p>For the purposes of this, I’m assuming you have set up a single (safe!) postfix instance, with messages going to the HOLD queue, before being processed by MailScanner and sent to the INCOMING queue. You also need to be saving whole messages as queue files. </p>
<p>In MailScanner.conf ensure that you have </p>
<pre># When you quarantine an entire message, do you want to store it as
# raw mail queue files (so you can easily send them onto users) or
# as human-readable files (header then body in 1 file)?
Quarantine Whole Messages As Queue Files = yes </pre>
<p>Quarantined emails are by default kept in /var/spool/MailScanner/quarantine and sorted into subdirectories by date. With any luck it will be dead easy to find, as MailScanner will have sent a message including text along the lines of either: </p>
<p>A: If it’s a quarantined virus, or other dangerous content. </p>
<pre>“Note to Help Desk: Look on the &lt;Your text&gt; in /var/spool/MailScanner/quarantine/20050309 (message
6BC5E368497.3C3A6).” </pre>
<p>MailScanner keeps such quarantined emails in their own directories, thus the directory containing the quarantined message will be (in this example): /var/spool/MailScanner/quarantine/20050309/6BC5E368497.3C3A6. In this directory, you should see the original queue file, named as a 10 digit hex number matching the name of the directory. There should also be copies of any attachments that may have been picked up by the virus scanning engine or file filtering. </p>
<p>B: If it’s a quarantined spam </p>
<pre>&quot;Your system administrators will need the following information:
Server name: &lt;Your Server&gt;
Message id: 46EE0E18151.CE630
Date code: 20080509&quot;</pre>
<p>MailScanner keeps all spam on a given day in the same directory, thus the directory containing the quarantined message will be (in this example): /var/spool/MailScanner/quarantine/20080509/spam. </p>
<p>If you want to check the original message use: </p>
<pre># postcat &lt;filename&gt;</pre>
<p>Releasing an email from quarantine is a simple matter of replacing the queue file back into the Postfix queue, so that it gets sent. The permissions on the file are wrong, however and must be changed. </p>
<pre># chmod 700 &lt;filename&gt;</pre>
<p>The file must now be moved into /var/spool/postfix/incoming. There may be 16 directories in there (Collectively referred to as ‘hashed queue files’) each corresponding to a hexadecimal digit, depending which version of Postfix you are running. First check if you have hashed queue files by: </p>
<pre># ls /var/spool/postfix/incoming</pre>
<p>If no directories are listed then follow the instructions below but do not add the trailing letter/ number. </p>
<p>The file must be placed in the directory which corresponds to the first digit of the filename. So in the example above, it must go into /var/spool/postfix/incoming/6. We must also be sure to preserve the ownership and permissions of the file when moving it, so we use “cp -p”. If the message is a spam, we must also remove the trailing 6 characters. </p>
<p>Thus for the example above: </p>
<pre># cp –p 6BC5E368497 /var/spool/postfix/incoming/6</pre>
<p>or for the example quarantined spam </p>
<pre># cp –p 46EE0E18151.CE630 /var/spool/postfix/incoming/4/46EE0E18151</pre>
<p>The email will disappear from the queue and be delivered. </p>
<p>Thanks to Joshua Hirsh for the details and Stef Morrell for writing the document </p>
<h3><a name="releasing_mail_from_the_quarantine_-_with_a_bash_script">Releasing mail from the quarantine &#8211; with a bash script</a></h3>
<p>Maybe it’s too circuitous for you to do all the steps in the section above to release a mail. For this I wrote a tiny script to release very easily. To use this script you should set the MailScanner environment identically to the article above. </p>
<p>To use this script copy it to a file and make it executable. </p>
<p>The Syntax: release.sh &lt;Message-ID&gt; (e.g. release.sh 5B604228086.932F0) </p>
<pre>#!/bin/sh

if [ -z &quot;$1&quot; ]; then
        echo &quot;Syntax: release.sh &lt;Message-ID&gt; i.e. 5B604228086.932F0 (case sensitive)&quot;
        exit
fi

#change in the quarantine folder
folder=`find /var/spool/MailScanner/quarantine/ -name $1`
cd $folder

#set the mailfile executable
mailname=`echo $1 | cut -d . -f 1`
chmod u+x $mailname

#lets get the first character
char=`echo $1 | cut -b 1-1`

#copy the mail
cp -a $mailname /var/spool/postfix/incoming/$char/

echo Mail $mailname released</pre>
<h3><a name="releasing_mail_from_the_quarantine_-_message_files">Releasing mail from the quarantine &#8211; message files</a></h3>
<p>If you don’t quarantine the complete queue file, but instead have the rfc822 message file, releasing messages are actually a bit simpler (for postfix) than the above, since you can use the postfix <code>sendmail</code> convenience program. </p>
<p>In MailScanner.conf you have </p>
<pre>Quarantine Whole Messages As Queue Files = no </pre>
<p>and in the quarantine directory you have a file called message (this is the complete human-readible message, but without the envelope info). Just do </p>
<pre>cd /path/to/quarantine/dir
sendmail -t -i &lt; message</pre>
<p>to send the message to the recipient(s) as found in the message file, or </p>
<pre>cd /path/to/quarantine/dir
sendmail -i alternate_recipient@example.net &lt; message</pre>
<p>to send the message to an alternate recipient (of course you can combine them). The <code>-i</code> option is to avoid terminating the message prematurely on a spurious single “.” on a line in the message file. </p>
<p>If you use <a href="http://wiki.mailscanner.info/doku.php?id=documentation:related_software:management:mailwatch:description">MailWatch</a>, this can also release the message iff you don’t quarantine the whole message file as the queue file, although this uses a different method to release messages from the <acronym>GUI</acronym>. </p>
<h3><a name="releasing_mail_from_the_quarantine_-_queue_files_postfix_again">Releasing mail from the quarantine &#8211; queue files postfix (again)</a></h3>
<p>In a larger environment with many hosts and thousands of quarantined emails per day, we’ve found it impractical to reply to each email released or deleted from a queue, and simply process it without fanfare. The code below is modified from the release.sh above to accomodate moving the released mail back into postfix using the original mail ID. In addition, our postfix install required us to rename the queue file to its shortname, that is, the 10 or 11 character filename before postfix would accept the email into the queue. </p>
<p>The Syntax: release.sh &lt;Message-ID&gt; (e.g. release.sh 5B604228086.932F0) </p>
<pre>#!/bin/sh

if [ -z &quot;$1&quot; ]; then
        echo &quot;Syntax: release.sh &lt;Message-ID&gt; i.e. 5B604228086.932F0 (case sensitive)&quot;
        exit
fi

#change in the quarantine folder
folder=`find /var/spool/MailScanner/quarantine/ -name $1 | sed -e &quot;s/$1//g&quot;`
cd $folder

#set the mailfile executable
mailname=`echo $1 | cut -d . -f1`
chmod u+x $1

#lets get the first character
char=`echo $1 | cut -b 1-1`

#copy the mail
cp -a $1 /var/spool/postfix/incoming/$char/$mailname</pre>
<p>The following is for recent postfixes (2.3, 2.4) which seem to have a flat incoming directory: </p>
<pre>#!/bin/sh

# this is the final destination for the mail to be released:
# postfix's incoming queue
POSTFIX_DEST=/var/spool/postfix/incoming

# check for valid parameters
if [ -z &quot;$1&quot; ]; then
        echo &quot;Syntax: release.sh &lt;Message-ID&gt;&quot;
        echo &quot;Example: release.sh 678362AC.9CFE7&quot;
        exit
fi

# find the specific mail in the quarantine folders
folder=`find /var/spool/MailScanner/quarantine/ -name $1`

mailname=`echo $1 | cut -d . -f1`

# copy the mail
if [ -e $POSTFIX_DEST/$mailname ] ; then
        echo &quot;ERROR: $mailname already in $POSTFIX_DEST! EXITING&quot;
        echo &quot;This should not happen&quot;
        exit 255
fi

cp -avi &quot;$folder/$mailname&quot; &quot;$POSTFIX_DEST/$mailname&quot;

# make it 0700 so that the mail is deemed ready
chmod 0700 $POSTFIX_DEST/$mailname</pre>
<h3><a name="releasing_mail_from_the_quarantine_-_the_one_liner">Releasing mail from the quarantine &#8211; the one liner</a></h3>
<p>sudo install -m 0700 -o postfix &lt;source message&gt; /var/spool/postfix/incoming </p>
<h3><a name="releasing_mail_from_the_quarantine_-_alias_with_intelligence">Releasing mail from the quarantine &#8211; alias with intelligence</a></h3>
<pre>integrate() {
  # integration: antonym of quarantine
  # Pass the message ID as obtained from user's email as $1
  DEST=$(postconf queue_directory | cut -d= -f2)/incoming
  SOURCE=$(find /var/spool/MailScanner/quarantine -name &quot;$1&quot;)
  install --verbose --mode=0700 --owner=postfix $SOURCE $DEST
}</pre>
<h3><a name="updated_bash_script">Updated bash script</a></h3>
<p>Line 9 on initial bash script returned filename with full path and not folder, as expected. Instructions at the top also used the cp -p option, and not -a. Instead of cd’ing to quarantine folder, this will do the copy and preserve permissions. </p>
<pre>#!/bin/sh

if [ -z &quot;$1&quot; ]; then
        echo &quot;Syntax: release.sh &lt;Message-ID&gt; i.e. 5B604228086.932F0 (case sensitive)&quot;
        exit
fi

#find the quarantined file and set permissions
quarantined_file=`find /var/spool/MailScanner/quarantine/ -name $1`
chmod u+x $quarantined_file

#truncate the filename
mailname=`echo $1 | cut -d . -f 1`

#lets get the first character
char=`echo $1 | cut -b 1-1`

#copy the mail, destination is the truncated filename
cp -p $quarantined_file /var/spool/postfix/incoming/$char/$mailname

echo Mail $mailname released</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2011/03/01/mailscanner%e5%8f%96%e5%9b%9e%e9%9a%94%e9%9b%a2%e5%8d%80%e7%9a%84%e4%bf%a1-releasing-mail-from-the-quarantine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Mailscanner 的 Archive Mail 備份郵件</title>
		<link>http://blog.infinity.idv.tw/index.php/2010/11/04/%e4%bd%bf%e7%94%a8mailscanner-%e7%9a%84-archive-mail-%e5%82%99%e4%bb%bd%e9%83%b5%e4%bb%b6/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2010/11/04/%e4%bd%bf%e7%94%a8mailscanner-%e7%9a%84-archive-mail-%e5%82%99%e4%bb%bd%e9%83%b5%e4%bb%b6/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 01:45:16 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Archive Mailscanner]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2010/11/04/%e4%bd%bf%e7%94%a8mailscanner-%e7%9a%84-archive-mail-%e5%82%99%e4%bb%bd%e9%83%b5%e4%bb%b6/</guid>
		<description><![CDATA[<p>最近MAIL常出現主旨為 : Problem Messages</p>
<p>內容為:</p>
<p>Archive:   Number of messages: 5    Tries Message Last Tried    ===== ======= ==========    6 3553C24D80D2.A0925 Sat Oct 30 04:57:38 2010    6 10ED024D80EC.AC79E Sat Oct 30 04:56:25 2010    6 2FF5D24D80D7.AD62C Sat Oct 30 04:53:05 2010   [...]]]></description>
			<content:encoded><![CDATA[<p>最近MAIL常出現主旨為 : Problem Messages</p>
<p>內容為:</p>
<p>Archive:   <br />Number of messages: 5    <br />Tries Message Last Tried    <br />===== ======= ==========    <br />6 3553C24D80D2.A0925 Sat Oct 30 04:57:38 2010    <br />6 10ED024D80EC.AC79E Sat Oct 30 04:56:25 2010    <br />6 2FF5D24D80D7.AD62C Sat Oct 30 04:53:05 2010    <br />6 DC7FD24D80BD.AC95D Sat Oct 30 04:43:07 2010    <br />6 73A4D24D80C2.A16DF Sat Oct 30 04:42:41 2010</p>
<p>找著找著找到了Mailscanner 的 Archive 用法</p>
<p>文章出處:<a title="http://i-yow.blogspot.com/2009/07/archive-mailby-mailscanner.html" href="http://i-yow.blogspot.com/2009/07/archive-mailby-mailscanner.html">http://i-yow.blogspot.com/2009/07/archive-mailby-mailscanner.html</a></p>
<p>=====================================================</p>
<p>邪惡的Archive Mail備份郵件(By MailScanner)   <br />MailScanner有一個邪惡又好用的功能：『Archive Mail』    <br />這個比Forward還要厲害的功能，當你想要存留(備份)用戶收、發的信件時，用這就就對了~ </p>
<p>1.啟動Archive功能   <br />vim /etc/MailScanner/MailScanner.conf    <br />Archive Mail = /etc/MailScanner/archive.rule </p>
<p>2.編輯Archive規則   <br />vim /etc/MailScanner/archive.rule    <br />基本規則如下：    <br />FromOrTo: User@mail.com* yes forward Admin@mail.com.tw    <br />(收件者或寄件者) (關鍵字，可配合萬用字元) (yes，啟用規則) (forward，動作) (Forward的目標) </p>
<p>※Archive Mail不但可以過濾到本機網域的帳號，也可以以外部帳號作為關鍵字，只要有經過MailScanner掃描的都可以做處理。   <br />※以上只是簡單的例子，Archive Mail還有許多變化跟應用</p>
<p>======================================================</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2010/11/04/%e4%bd%bf%e7%94%a8mailscanner-%e7%9a%84-archive-mail-%e5%82%99%e4%bb%bd%e9%83%b5%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Winmail.dat -TNEF格式文件</title>
		<link>http://blog.infinity.idv.tw/index.php/2010/10/28/winmail-dat-tnef%e6%a0%bc%e5%bc%8f%e6%96%87%e4%bb%b6/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2010/10/28/winmail-dat-tnef%e6%a0%bc%e5%bc%8f%e6%96%87%e4%bb%b6/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 02:00:51 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[電腦專有名詞]]></category>
		<category><![CDATA[TNEF winmail.dat]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2010/10/28/winmail-dat-tnef%e6%a0%bc%e5%bc%8f%e6%96%87%e4%bb%b6/</guid>
		<description><![CDATA[<p>今天看mail server log看到這樣的訊息:</p>
<p> 
<p>Message C187524D806E.A9FB1 has had TNEF winmail.dat removed : 1 Time(s)</p>
<p> 
<p></p>
<p>再查MAILLOG看到:</p>
<p>Oct 27 12:14:35 mail MailScanner[28827]: New Batch: Scanning 1 messages, 50620 bytes   Oct 27 12:14:35 mail MailScanner[28827]: Expanding TNEF archive at /var/spool/MailScanner/incoming/28827/C187524D806E.A9FB1/winmail.dat    Oct 27 12:14:35 mail MailScanner[28827]: Message C187524D806E.A9FB1 has had TNEF winmail.dat removed    [...]]]></description>
			<content:encoded><![CDATA[<p><b>今天看mail server log看到這樣的訊息:</b></p>
<p> <b>
<p><b></b>Message C187524D806E.A9FB1 has had TNEF winmail.dat removed : 1 Time(s)</p>
<p> </b>
<p><b></b><b></b></p>
<p><b>再查MAILLOG看到:</b></p>
<p>Oct 27 12:14:35 mail MailScanner[28827]: New Batch: Scanning 1 messages, 50620 bytes   <br />Oct 27 12:14:35 mail MailScanner[28827]: Expanding TNEF archive at /var/spool/MailScanner/incoming/28827/C187524D806E.A9FB1/winmail.dat    <br />Oct 27 12:14:35 mail MailScanner[28827]: Message C187524D806E.A9FB1 has had TNEF winmail.dat removed    <br />Oct 27 12:14:35 mail MailScanner[28827]: Virus and Content Scanning: Starting    <br />Oct 27 12:14:36 mail MailScanner[28827]: Requeue: C187524D806E.A9FB1 to 5610124D80C9</p>
<p><b>然後GOOGLE一下:TNEF找到下面文章，文章出處:<a href="http://translate.google.com.tw/translate?hl=zh-TW&amp;sl=zh-CN&amp;u=http://moment.blog.51cto.com/1125796/330328&amp;ei=HNfITMaCLIGivQPW7tiVCQ&amp;sa=X&amp;oi=translate&amp;ct=result&amp;resnum=9&amp;ved=0CFUQ7gEwCA&amp;prev=/search%3Fq%3DTNEF%26hl%3Dzh-TW%26sa%3DG%26biw%3D1280%26bih%3D905">http://translate.google.com.tw/translate?hl=zh-TW&amp;sl=zh-CN&amp;u=http://moment.blog.51cto.com/1125796/330328&amp;ei=HNfITMaCLIGivQPW7tiVCQ&amp;sa=X&amp;oi=translate&amp;ct=result&amp;resnum=9&amp;ved=0CFUQ7gEwCA&amp;prev=/search%3Fq%3DTNEF%26hl%3Dzh-TW%26sa%3DG%26biw%3D1280%26bih%3D905</a>      </p>
<p>Winmail.dat -TNEF格式文件</b></p>
<p>今天看到有個同事收到的郵件，裡邊有個奇怪的附件Winmail.dat不知道怎麼打開，信裡也沒別的有效內容了，沒辦法，只好動用法寶先用記事本強制打開發現含有IPM. Microsoft Mail.Note之類的信息。 再動用google才了解到，原來這是微軟的Email傳輸不確定封裝格式，直接用MS Office Outlook收取才能打開，如果用其它終端收取再用MS Office Outlook 也無法識別打開。 後來在網上找到了好幾個開這種附件的軟件，發現這個Winmail Opener最好用。 放在這裡，方便大家，下載地址： <u><a href="http://www.eolsoft.com/download/winmail_opener.exe">http://www.eolsoft.com/download/winmail_opener.exe</a></u></p>
<p>順便介紹一下相關知識：   <br />TNEF    <br />Exchange Server 2003 使用傳輸不確定封裝格式(TNEF) 將MAPI 郵件轉換為RFC 822 格式。 TNEF 以application/ms-tnef 類型的MIME 附件的形式出現在郵件中。 該附件的名稱為Winmail.dat。 它包含完整的郵件內容以及所有附加文件。 只有MAPI 客戶端（如Outlook）能夠對Winmail.dat 附件進行解碼。 非MAPI 客戶端無法對TNEF 進行解碼，並且可能將Winmail.dat 顯示為典型但無用的文件。    <br />Note :    <br />在以下幾種可能的Exchange 對Exchange 傳輸情形下，必須進行MAPI 到RFC 822 的轉換：    <br />收件人在同一路由組中的Exchange 服務器上Exchange Server 2003 將MAPI 郵件轉換為Summary-TNEF (S/TNEF) 格式，這是一種特殊的傳輸不確定封裝格式(TNEF)，沒有純文本部分，並且以八位的二進制格式傳送。 S/TNEF 郵件僅僅包含Winmail.dat。 Note :    <br />收件人在另一個路由組中的Exchange 服務器上，並且Exchange 組織在純模式下工作Exchange Server 2003 將MAPI 郵件轉換為Summary-TNEF (S/TNEF) 格式，因為純模式下的Exchange 組織只能包含支持二進制MIME 的Exchange 2000 Server 服務器和Exchange Server 2003 服務器。    <br />收件人在另一個路由組中的Exchange 服務器上，並且Exchange 組織在混合模式下工作在混合模式下，有可能將Exchange Server 5.5 的Internet 郵件服務用作SMTP 連接器，但是Internet 郵件服務不支持二進制MIME。 由於S/TNEF 的RFC 822 表示（由IMAIL 產生）是二進制MIME，因此Internet 郵件服務無法傳輸S/TNEF 郵件。 由於Exchange 分類程序無法預先檢測到郵件將採用什麼路由路徑，因此在混合模式下，分類程序不為本地路由組外部的服務器上的收件人進行郵件轉換，也就是不將郵件轉換為S/TNEF 。 為了在傳輸路徑中容納可能的Internet 郵件服務實例，Exchange 分類程序將郵件轉換為純文本部分以及舊版TNEF 格式附件。 舊版TNEF 格式是Internet 郵件服務能夠傳輸的七位MIME。    <br />收件人是本地Exchange 組織之外的MAPI 收件人用戶和管理員可以為外部郵件環境中使用Outlook 的收件人啟用跨本地Exchange 組織邊界的TNEF 傳輸。 由於收件人不在本地Exchange 組織中，Exchange 分類程序無法確定郵件傳輸中涉及到的所有SMTP 主機是否都支持二進制MIME。 因此，Exchange 分類程序將郵件轉換為純文本部分以及舊版TNEF 格式的附件。</p>
<p>Note :   <br />發送到公用文件夾中的MAPI 郵件發送到公用文件夾中的郵件始終以舊版TNEF 格式中繼。 本節後面提供了有關公用文件夾郵件處理的詳細信息。    <br />通過SMTP 發送到展開服務器的MAPI 郵件如果郵件包含通訊組列表，並且明確指定的展開服務器不是本地服務器，郵件將以舊版TNEF 格式轉發到展開服務器（如果使用SMTP 傳輸郵件）。 在這種情況下，會將一個屬性放入郵件傳輸信封中通過XEXCH50 傳輸。 該屬性通知展開服務器最初通過Exchange 存儲驅動程序收到郵件的時間。 展開服務器上的分類程序展開通訊組列表後，必須分別對每個收件人應用有效的RFC 822 郵件格式。 分類程序使用Exchange 存儲驅動程序將郵件複製到Exchange 存儲中，IMAIL 再從Exchange 存儲中讀取TNEF 數據並用原始郵件的提交時間構建MAPI 郵件。 之後，SMTP 傳輸子系統便能夠從存儲中讀取符合收件人格式要求的RFC 822 格式MAPI 郵件。    <br />可以通過添加以下註冊表項，控制發送郵件的TNEF 格式行為。 數字nn 代表此計算機的虛擬服務器實例。    <br />位置HKey_Local_Machine\Software\Microsoft\Exchange\StoreDriver\Exchange\ nn \EnableTnef    <br />值Disabled    <br />類型REG_DWORD    <br />數值數據0×0    <br />描述如果值為0×0，則禁用TNEF，不使用TNEF 生成郵件。 如果值為0×1，則使用舊版TNEF 生成郵件，此時通常生成S/TNEF。 值為0×2 則沒有任何影響，因為這是默認行為。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2010/10/28/winmail-dat-tnef%e6%a0%bc%e5%bc%8f%e6%96%87%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailscanner 檔案規則設定成不同User或不同Domain對應不同的規則</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/12/02/mailscanner-%e6%aa%94%e6%a1%88%e8%a6%8f%e5%89%87%e8%a8%ad%e5%ae%9a%e6%88%90%e4%b8%8d%e5%90%8cuser%e6%88%96%e4%b8%8d%e5%90%8cdomain%e5%b0%8d%e6%87%89%e4%b8%8d%e5%90%8c%e7%9a%84%e8%a6%8f%e5%89%87/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/12/02/mailscanner-%e6%aa%94%e6%a1%88%e8%a6%8f%e5%89%87%e8%a8%ad%e5%ae%9a%e6%88%90%e4%b8%8d%e5%90%8cuser%e6%88%96%e4%b8%8d%e5%90%8cdomain%e5%b0%8d%e6%87%89%e4%b8%8d%e5%90%8c%e7%9a%84%e8%a6%8f%e5%89%87/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 01:14:03 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[Rule]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/12/02/mailscanner-%e6%aa%94%e6%a1%88%e8%a6%8f%e5%89%87%e8%a8%ad%e5%ae%9a%e6%88%90%e4%b8%8d%e5%90%8cuser%e6%88%96%e4%b8%8d%e5%90%8cdomain%e5%b0%8d%e6%87%89%e4%b8%8d%e5%90%8c%e7%9a%84%e8%a6%8f%e5%89%87/</guid>
		<description><![CDATA[<p>還沒實驗證實，但是如果真的可以，就太好用啦!!!!</p>
<p></p>
<p>文章出處：http://www.mamu.com.tw/blog/2007/09/19/%E5%B7%A5%E4%BD%9C%E5%BF%83%E5%BE%97-mailscanner-filename-for-different-domain/</p>
<p>MailScanner Filename for different Domain</p>
<p>這個設定可以讓MailScanner針對不同的Domain或User做附件的檢查</p>
<p>環境</p>
<p>OS：CentOS 4.4</p>
<p>Software：mailscanner-4.54.6-1</p>
<p>Step 1</p>
<p>在 /etc/MailScanner/ 新增 filename.rule 與 filetype.rules 兩個檔案</p>
<p>內容就是你想單獨設定的Domain與預設值</p>
<p>example</p>
<p>FromOrTo:&#160;&#160;&#160;&#160;&#160;&#160; default&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; /etc/MailScanner/filename.rules.conf     FromOrTo:&#160;&#160;&#160;&#160;&#160;&#160; *@domain1.com.tw&#160;&#160;&#160;&#160;&#160;&#160; /etc/MailScanner/filename.domain1.rules.conf      FromOrTo:&#160;&#160;&#160;&#160;&#160;&#160; *@domain2.com.tw&#160;&#160;&#160;&#160; /etc/MailScanner/filename.domain2.rules.conf</p>
<p>*中間的空格要用Tab喔</p>
<p>格式的語法變化請參考 /etc/MailScanner/rule/EXAMPLES 中有詳細的敘述</p>
<p>Step 2</p>
<p>Copy filename.rules.conf 成你指定的檔案</p>
<p>cp filename.rules.conf&#160; filename.domain1.rules.conf</p>
<p>cp filename.rules.conf&#160; filename.domain2.rules.conf</p>
<p>並分別修改成符合你要的規則</p>
<p>也就是說當信符合*@domain2.com.tw他的Attachment Filename Rule 會套用filename.domain2.rules.conf中的規則</p>
<p>Step 3</p>
<p>修改 MailScanner.conf 中的 Filename Rule 選項修改成你的檔名</p>
<p>Filename Rules = %etc-dir%/filename.rules</p>
<p>Filetype Rules = %etc-dir%/filetype.rules</p>
<p>Step 4</p>
<p>最後記得重新啟動MailScanner</p>
<p>service [...]]]></description>
			<content:encoded><![CDATA[<p><font size="3">還沒實驗證實，但是如果真的可以，就太好用啦!!!!</font></p>
<p><font size="3"></font></p>
<p><font size="3">文章出處：<a title="http://www.mamu.com.tw/blog/2007/09/19/%E5%B7%A5%E4%BD%9C%E5%BF%83%E5%BE%97-mailscanner-filename-for-different-domain/" href="http://www.mamu.com.tw/blog/2007/09/19/%E5%B7%A5%E4%BD%9C%E5%BF%83%E5%BE%97-mailscanner-filename-for-different-domain/">http://www.mamu.com.tw/blog/2007/09/19/%E5%B7%A5%E4%BD%9C%E5%BF%83%E5%BE%97-mailscanner-filename-for-different-domain/</a></font></p>
<p><font size="3">MailScanner Filename for different Domain</font></p>
<p>這個設定可以讓MailScanner針對不同的Domain或User做附件的檢查</p>
<p>環境</p>
<p>OS：CentOS 4.4</p>
<p>Software：mailscanner-4.54.6-1</p>
<p>Step 1</p>
<p>在 /etc/MailScanner/ 新增 filename.rule 與 filetype.rules 兩個檔案</p>
<p>內容就是你想單獨設定的Domain與預設值</p>
<p><strong>example</strong></p>
<p><strong>FromOrTo:&#160;&#160;&#160;&#160;&#160;&#160; default&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; /etc/MailScanner/filename.rules.conf     <br />FromOrTo:&#160;&#160;&#160;&#160;&#160;&#160; <a href="mailto:*@domain1.com.tw">*@domain1.com.tw</a>&#160;&#160;&#160;&#160;&#160;&#160; /etc/MailScanner/filename.domain1.rules.conf      <br />FromOrTo:&#160;&#160;&#160;&#160;&#160;&#160; <a href="mailto:*@domain2.com.tw">*@domain2.com.tw</a>&#160;&#160;&#160;&#160; /etc/MailScanner/filename.domain2.rules.conf</strong></p>
<p>*中間的空格要用Tab喔</p>
<p>格式的語法變化請參考 /etc/MailScanner/rule/EXAMPLES 中有詳細的敘述</p>
<p>Step 2</p>
<p>Copy filename.rules.conf 成你指定的檔案</p>
<p>cp filename.rules.conf&#160; filename.domain1.rules.conf</p>
<p>cp filename.rules.conf&#160; filename.domain2.rules.conf</p>
<p>並分別修改成符合你要的規則</p>
<p>也就是說當信符合<a href="mailto:*@domain2.com.tw">*@domain2.com.tw</a>他的Attachment Filename Rule 會套用filename.domain2.rules.conf中的規則</p>
<p>Step 3</p>
<p>修改 MailScanner.conf 中的 Filename Rule 選項修改成你的檔名</p>
<p>Filename Rules = %etc-dir%/filename.rules</p>
<p>Filetype Rules = %etc-dir%/filetype.rules</p>
<p>Step 4</p>
<p>最後記得重新啟動MailScanner</p>
<p>service MailScanner restart</p>
<p>到這裡就大功告成囉，可以試著寄一些檔案給自己測試看看</p>
<p>昨天晚上裝了MailWatch結果不管怎麼試黑白名單就是無法生效，試到讓我有點抓狂…..</p>
<p>有閒工夫再研究吧，最近會設定這些實在是因為管MAIL管到快要煩死了！</p>
<p><font size="3">&#160;</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/12/02/mailscanner-%e6%aa%94%e6%a1%88%e8%a6%8f%e5%89%87%e8%a8%ad%e5%ae%9a%e6%88%90%e4%b8%8d%e5%90%8cuser%e6%88%96%e4%b8%8d%e5%90%8cdomain%e5%b0%8d%e6%87%89%e4%b8%8d%e5%90%8c%e7%9a%84%e8%a6%8f%e5%89%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner 中文設定說明</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e4%b8%ad%e6%96%87%e8%a8%ad%e5%ae%9a%e8%aa%aa%e6%98%8e/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e4%b8%ad%e6%96%87%e8%a8%ad%e5%ae%9a%e8%aa%aa%e6%98%8e/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 05:51:32 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[MailScanner 設定檔中文說明]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e4%b8%ad%e6%96%87%e8%a8%ad%e5%ae%9a%e8%aa%aa%e6%98%8e/</guid>
		<description><![CDATA[<p></p>
<p>mailscanner对垃圾邮件的控制 </p>
<p>所有的設設值都包含在/opt/mailscanner/etc/mailscanner.conf這個檔案中(隨各個套件設定而有所不同)，每一個都會以下的內容進行說明，如果要使用不同的設置檔，請修改MailScanner的命令列。空白列會被忽略，和一開頭延伸至之後的空白格意思是一樣的，而註釋則是由開頭為『#』的符號開始，之後的一整行都為註釋，所以的選項的格式都如下所示：option = value許多的選項中的規則設定也可能是包含在特定的檔案中，可以用來控制使用資訊位址(address of messages)，或是從哪個IP Address來的message的功能，你將會在MailScanner安裝目錄中的 etc/rules 目錄中發現一些MailScanner規則的範例及說明。在以下的說明中，這些選項都被使用類型分類，並列表出來，而且同樣的依順序排列在mailscanner.conf中。假若您覺的這些看起來非常多的話，先不用擔心，mailscanner.conf提供了很多實用的預設值，你也許只需要修改些許部份就可以開始使用MailScanner了。           系統設定(System Settings)       Max Children&#160;&#160;&#160;&#160; Default: 5       MailScanner會使用你的伺服器在同一時間內有效的進行好幾個行程來處理(processing)郵件，這個設定就是設置同時進行的行程數，假設你處理非常多的郵件，調高這個數字會對你的伺服器性能會有改變，一個好的數字會被設定成每個CPU可同時處理5個行程，所以假設你擁有四個CPU的話，可以設定為20。            Run As User&#160; Default不要改變此使用者   [...]]]></description>
			<content:encoded><![CDATA[<p><ins><ins><font face="華康儷圓 Std W7" size="3"></font></ins></ins></p>
<p><font face="華康儷圓 Std W7" size="3">mailscanner对垃圾邮件的控制 </font></p>
<p><font face="華康儷圓 Std W7" size="3">所有的設設值都包含在/opt/mailscanner/etc/mailscanner.conf這個檔案中(隨各個套件設定而有所不同)，每一個都會以下的內容進行說明，如果要使用不同的設置檔，請修改MailScanner的命令列。空白列會被忽略，和一開頭延伸至之後的空白格意思是一樣的，而註釋則是由開頭為『#』的符號開始，之後的一整行都為註釋，所以的選項的格式都如下所示：option = value許多的選項中的規則設定也可能是包含在特定的檔案中，可以用來控制使用資訊位址(address of messages)，或是從哪個IP Address來的message的功能，你將會在MailScanner安裝目錄中的 etc/rules 目錄中發現一些MailScanner規則的範例及說明。在以下的說明中，這些選項都被使用類型分類，並列表出來，而且同樣的依順序排列在mailscanner.conf中。假若您覺的這些看起來非常多的話，先不用擔心，mailscanner.conf提供了很多實用的預設值，你也許只需要修改些許部份就可以開始使用MailScanner了。      <br /></font><font face="華康儷圓 Std W7" size="3">     <br />系統設定(System Settings)       <br />Max Children&#160;&#160;&#160;&#160; Default: 5       <br />MailScanner會使用你的伺服器在同一時間內有效的進行好幾個行程來處理(processing)郵件，這個設定就是設置同時進行的行程數，假設你處理非常多的郵件，調高這個數字會對你的伺服器性能會有改變，一個好的數字會被設定成每個CPU可同時處理5個行程，所以假設你擁有四個CPU的話，可以設定為20。       <br /></font><font face="華康儷圓 Std W7" size="3">     <br />Run As User&#160; Default不要改變此使用者       <br />提供給Exim的使用者(絕不要使用 root 作為 sendmail 的使用者)，這個選項是改變運行 MailScanner 的使用者。       <br /></font><font face="華康儷圓 Std W7" size="3">     <br />Run As Group&#160; Default 不要改變此群組       <br />提供給Exim的使用者(絕對不要使用 root 作為 sendmail 的使用者)，這個選項是改變運行 MailScanner 的群組。       <br /></font><font face="華康儷圓 Std W7" size="3">     <br />Incoming queue dir&#160; Default:/var/spool/mqueue.in       <br />MailScanner 該掃描的郵件目錄。       <br /></font><font face="華康儷圓 Std W7" size="3">     <br />Outgoing queue dir&#160;&#160;&#160; Default:/var/spool/mqueue       <br />MailScanner 所掃描過後的郵件目錄。       <br /></font><font face="華康儷圓 Std W7" size="3">     <br />Incoming work dir Default:/opt/MailScanner/var/incoming       <br />在進行掃描動作的期間，用來放置被解壓縮的 MIME 訊息的暫存目錄。       </p>
<p>Quarantine dir&#160; Default:/opt/MailScanner/var/quarantine       <br />一個放置感染病毒的郵件中被隔離附件的目錄。       </p>
<p>PID dir Default:/opt/MailScanner/var       <br />存放 MailScanner 行程 id 檔的目錄。       </p>
<p>MTA&#160; Default:sendmail (sendmail 或 Exim)       <br />指定要使用那個MTA套件。       </p>
<p>Sendmail&#160; Default:/usr/lib/sendmail       <br />Sendmail 的程式位置。       </p>
<p>Sendmail2 Default是 Sendmail這個選項的設置       <br />使用在傳送 outgoing/cleaned 訊息的狀態下(MailScanner有分 incoming 及 outgoing 的模式)。提供給Exim使用者，所以他們可以指定一個不同的exim.conf檔，用來轉送outgoing的佇列。       </p>
<p>處理 Incoming (Processing Incoming Mail)       <br />Max Unscanned Bytes Per Scan&#160; Default: 100000000       <br />MailSanner 為了效能，以一批為單位來處理訊息(messages)，從 incoming queue 目錄收集資訊(使用嚴格的日期排序)，一次一個直到這個或下面的三個選項到達極限，或是目錄(queue)為空，這個設定限制了每批訊息最大要多少才可不被掃描。       </p>
<p>Max Unsafe Bytes Per Scan&#160;&#160; Default: 50000000       <br />這個設定限制了每一批被掃描的訊息的最大大小。       </p>
<p>Max Unscanned Messages Per Scan&#160; Default: 100       <br />這個設定限制了每一批訊息的數目要多少才不被掃描。       </p>
<p>Max Unsafe Messages Per Scan&#160; Default: 100       <br />這個值定義了當一批訊息一塊被處理時的最大大小為何，假如你在你的伺服器上有著處理訊息速度不夠快的問題，你也許可以使用這個選項去改善情況。       </p>
<p>Expand TNEF&#160; Default: yes       <br />我們該使用一個外部的 TNEF 解譯器嗎? TNEF 解譯器是被建立在 Sophos 和 McAfee 中的，所以說這個選項對於擁有Sophos/McAfee 的使用者應該設定為 &quot;no&quot;，對於其他的使用者應該設定為 &quot;yes&quot;。       </p>
<p>Deliver Unparsable TNEF&#160; Default: no       <br />一些 Microsoft Outlook版本會產生擁有很多 Text 格式的附件，這些附件目前並不能被完的解譯，將這個選項設定為 &quot;yes&quot; 是使用較早的版本性能去可被允許的相容性，讓這些附件可以被轉送，採用這個方法會使病毒藉由一點輕微的機會，或是附件的片段檔案來藏匿，而不被偵測到，但這個設定也許對於使用大量的 Microsoft Outlook 的用戶是必需的。       </p>
<p>TNEF Expander&#160; Default:/opt/mailscanner/bin/tnef       <br />MS-TNEF expander/decoder 程式的完整路徑，或者是取代前者，強制選擇使用 Perl&#160; Convert::TNEF 模組程式的語法。       </p>
<p>TNEF Timeout&#160; Default: 120       <br />TNEF 在解譯一個 Microsoft Outlook 附件時，所被允許的最大時間(秒)。       </p>
<p>Block Encrypted Messages Default: no       <br />這是預期在正常的狀況下，使用這個設置為 &quot;no&quot; 時，你的用戶不會有隱藏郵件位置來寄信的狀況，因為這個選項會將隱藏郵件位置的信件擋下。       </p>
<p>Block Unencrypted Messages Default: no       <br />這是預期在正常的狀況下，使用這個設置為 &quot;no&quot; 時，你的用戶會在寄送前將郵件加密才送出，因為這個選項會將沒有加密的信件擋下。       <br />病毒掃描及弱點測試 (Virus Scanning and Vulnerability Testing)       </p>
<p>Virus Scanning Default: yes       <br />掃描郵件病毒嗎? 若將此選項設定為 &quot;no&quot; 會完全關閉病毒掃描的功能。       </p>
<p>Virus Scanners Default: none(sophos, mcafee, command, kaspersky, inoculate, inoculan, nod32, f-prot, f-secure, antivir, panda, rav, none)       <br />指定你要使用那個 anti-viurs的套件。       <br />注意：假如你要使用好幾個套件，請用空白鍵將每一個名稱分開。       </p>
<p>Virus Scanner Timeout Default: 300       <br />Virus Scsnner 掃描一組訊息的最大時間(秒)。       </p>
<p>Deliver Disinfected Files Default: yes       <br />當一個被感染的文件被解毒成功後，是否要將之寄回原來的目的地?       </p>
<p>Silent Viruses&#160; Default: Klez Yaha−E Bugbear Braid−A WinEvar       <br />當病毒報告的資訊含有以下列表的字時，將會被當成 &quot;靜態病毒(Silent Viruses)&quot; 來對待，不會有任何的郵件傳給原來的收件人，能否轉送這類郵件，是被下一個選項(Still Deliver Silent Viruses)所決定，這個選項的預設值先設定成 &quot;Klez&quot; 及 &quot;Bugbear&quot;，由於這兩種病毒會偽造來源位址，所以寄回警告訊息是毫無意義的，因為在實際上它不會被送回給發       <br />信人。       </p>
<p>Still Deliver Silent Viruses&#160; Default: yes       <br />如果這個選項設定為 &quot;yes&quot; 的時候，解毒後的郵件還是會傳回給原始的收信人，即使這些位址是被那些被感染的PC使用隨機的方式選出來的，而且並不是那些使用者想寄的，設定此選項為 &quot;yes&quot; 會讓你的使用者知道你的 MailScanner是有在保護他們的，但是如果有許多人抱怨收到太多的病毒通知時，那就設定為 &quot;no&quot; 吧。       <br />移除危險及潛在的攻擊內容 (Removing Dangerous or Potentially Offensive Content)       </p>
<p>Allow Partial Messages Default: no       <br />你要允許一個只包含片段附件的不完整的訊息嗎? 不完整的訊息當然不能被掃出有病毒，就如同每次處理都只有片段的資訊，不的有完整的訊息，設定這個選項為 &quot;no&quot; 是一件『非常危險』的事，因為它允許病毒存在內部，但是你可以使用一些規則去設定特定使用者允許這個選項。       </p>
<p>Allow External Message Bodiees Default is no       <br />這是一個技巧，但非常少用到，一個郵件訊息可以被包含在遠端的伺服器上，而使用者的應用程式可以將遠端的郵件內容下載並執行，現在只有少數版本的 Netscape 可以支援，而且只有當用戶使用 IETF 時，我們沒有辦法保証這些下載的檔案沒有病毒，因為 MailScanner 無法發現這些存在其中的病毒。 設定此選項為 &quot;yes&quot; 是一件『非常危險』的事，因為可能在遠端的伺服器中存有病毒。       </p>
<p>Allow IFrame Tags Default:&#160; no       <br />你要允許 HTML中的 &lt;IFrame&gt; 標籤包含在郵件中嗎? 允許各種的 Microsoft Outlook 安全弱點不是一個好的主意，但是如果你的信件中擁有大量此類的信件，也許你必需將此選項設定為 &quot;yes&quot;，否則你的使用者大概會抱怨連連。       </p>
<p>Log IFrame Tags Default: no       <br />你也許在當你設定上述選項(Allow IFrame Tags)為 &quot;no&quot; 後，收到你的使用者抱怨說他的 HTML信件無法正常閱讀，所以你可以將前項設定為 &quot;yes&quot;，而將此項設定為 &quot;no&quot;，這樣子 MailScanner會將郵件中的 &lt;IFrame&gt; 標籤刪除，但是你可以設定一個規則去限定特殊郵件位置才可以被允許使用 &lt;IFrame&gt; 標籤。       </p>
<p>Allow Object Codebase Tags Default: no       <br />你要允許 HTML中的 &lt;Object Codebase=&#8230;&gt; 標籤包含在郵件中嗎? 允許各種的 Microsoft Outlook 安全弱點不是一個好的主意，這裡強烈建議你將此選項設定為 &quot;no&quot;，除非有特別理由。       </p>
<p>Convert Dangerous HTML To Text Default: no       <br />當&lt;IFrame&gt; 或是 &lt;Object Codebase=&#8230;&gt; 這些HTML標籤被允許時，你是否要將這些郵件轉換成純文字郵件，這個選項前面的兩個選項是二選一的，打開這個選項會使用戶選擇去閱讀文字內容，而不會暴露潛在的危機或具攻擊性的 HTML內容。       </p>
<p>Convert HTML To Text Default: no       <br />假設我的用戶是小孩，而且違反了規定去閱讀情色之類的廣告郵件，你可以藉由轉換所有的 HTML 郵件變成純文字郵件的方法來保護他們，HTML的附件不會被影響到，你可以針對某些使用者來設定這個選項，或是不要轉變一些受信任位址的郵件，這個選項也許是必要的，因為你有責任去關心一些你的使用者。       </p>
<p>附件檔的確認 (Attachment Filename Checking)       <br />Filename rules       <br />Default: /opt/MailScanner/etc/filename.rules.conf       <br />Default Linux: /etc/MailScanner/filename.rules.conf       <br />Default FreeBSD: /usr/local/etc/MailScanner/filename.rules.conf       <br />附件檔規則設定的檔案位置。       <br />報告及回應(Reports and Responses)       </p>
<p>Quarantine Infections Default: yes       <br />設定存放受感染及危險的郵件附件存放目錄，如果沒有設定，它們會被刪除，由於一些法律保障隱私權，你也許應該將這項選項設定為 &quot;no&quot;。       </p>
<p>Quarantine Whole Message Default: no       <br />當一個受感染的郵件存放在 quarantine(隔離區) 時，一個完整拷貝的版本會被存檔下來，除此之外還會將受感染的附件一併存檔。       </p>
<p>Quarantine Whole Messages As Queue Files Default: no       <br />當你用任何理由將完整的郵件存在 quarantine (隔離區)時，你要用在 queue 原始的資料檔(被df2mbox程式處理過，可更容易被送至原始收件者)來存檔，或者是你要使用一個包含檔頭的郵件主體的常見訊息?假設先前的那個選項被設定成 &quot;no&quot; 時，只會影響到被存檔的郵件及被隔離的廣告信，但如果先前的選項為 &quot;yes&quot;的話，就會連在隔離區中被感染的檔案也影響到。       </p>
<p>Language Strings Default: /opt/MailScanner/etc/reports/en/languages.conf       <br />Default Linux: /etc/MailScanner/reports/en/languages.conf       <br />DefaultFreeBSD:/usr/local/share/MailScanner/reports/en/languages.conf       <br />設定當發現所有的字串時可被以翻譯的語系，這個設定也可以使用檔案去當做一個定義規則的方法，所以你可在不同的郵件中定義不同語系，在預設的檔案中會有簡易的範例。&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>
<p>Deleted Bad Filename Message Repor       <br />Default: /opt/MailScanner/etc/reports/en/deleted.filename.message.txt       <br />DefaultLinux:/etc/MailScanner/reports/en/deleted.filename.message.txt       <br />DefaultFreeBSD:/usr/local/share/MailScanner/reports/en/deleted.filename.message.txt       <br />當一個郵件的附件檔沒有有效的通過檔案過濾的規則而被刪除時，被刪除的檔案會被選項中所設定的檔案所取代，在預設的檔案中會有簡易的範例。       </p>
<p>Deleted Virus Message Report       <br />Default: /opt/MailScanner/etc/reports/en/deleted.virus.message.txt       <br />Default Linux: /etc/MailScanner/reports/en/deleted.virus.message.txt       <br />DefaultFreeBSD:/usr/local/share/MailScanner/reports/en/deleted.virus.message.txt       <br />當一個郵件的附件被偵測出含有病毒或其他危險的內容而被刪除時，被刪除的檔案會被選項中所設定的檔案所取代，在預設的檔案中會有簡易的範例。       </p>
<p>Stored Bad Filename Message Report       <br />Default: /opt/MailScanner/etc/reports/en/stored.filename.message.txt       <br />Default Linux: /etc/MailScanner/reports/en/stored.filename.message.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/stored.filename.message.txt       <br />當一個郵件的附件檔沒有有效的通過檔案過濾的規則而被刪除時(而且這個被刪除的附件被存在隔離區)，被刪除的檔案會被選項中所設定的檔案所取代，在預設的檔案中會有簡易的範例。       </p>
<p>Stored Virus Message Report 當一個郵件的附件被偵測出含有病毒或其他危險的內容而被刪除時(而且這個被刪除的附件被存在隔離區)，被刪除的檔案會被選項中所設定的檔案所取代，在預設的檔案中會有簡易的範例。       </p>
<p>Disinfected Report       <br />Default: /opt/MailScanner/etc/reports/en/disinfected.report.txt       <br />Default Linux: /etc/MailScanner/reports/en/disinfected.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/disinfected.report.txt       <br />舉個例子來說，當 Microsoft Word 的巨集病毒從一個郵件中被安全的移除後，這個郵件被完整的保留下來，當在寄給原來的收件者時，這個選項的檔案內容會被放在郵件的主體中，用來通知收件者發生了什麼事情。       </p>
<p>Inline HTML Signature&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />Default: /opt/MailScanner/etc/reports/en/inline.sig.html       <br />Default Linux: /etc/MailScanner/reports/en/inline.sig.html       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/inline.sig.html       <br />假設 &quot;Sign Clean Messages&quot; 這個選項被啟動，當 MailScanner 完成此郵件的掃描時，會加註簽名在每個郵件的結尾，你可以利用這個選項通知你的使用者，代表這個郵件已經被掃描，你也可增加任何你拒絕從此部伺服器傳送的資訊在此檔中，這個檔案的內容是要符合插入到一個 HTML 檔案中。       </p>
<p>Inline Text Signature       <br />Default: /opt/MailScanner/etc/reports/en/inline.sig.txt       <br />Default Linux: /etc/MailScanner/reports/en/inline.sig.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/inline.sig.txt       <br />假設 &quot;Sign Clean Messages&quot; 這個選項被啟動，當 MailScanner 完成此郵件的掃描時，會加註簽名在每個郵件的結尾，你可以利用這個選項通知你的使用者，代表這個郵件已經被掃描，你也可增加任何你拒絕從此部伺服器傳送的資訊在此檔中，這個檔案的內容是要符合插入到一個 Text 檔案中。       </p>
<p>Inline HTML Warning Inline Text Warning       <br />當一個郵件的附件被移除了之後，這個選項的檔案內容會被插入到郵件主體的開頭去告知這個收信人閱讀病毒警告附件檔 &quot;VirusWarning.txt&quot;，此檔包含了病毒報告。       </p>
<p>Sender Error Report       <br />Default:/opt/MailScanner/etc/reports/en/sender.error.report.txt       <br />Default Linux: /etc/MailScanner/reports/en/sender.error.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.error.report.txt       <br />當一個郵件基於一些原因無法完整的被掃描，例如不完整的訊息結構，或者是不能閱讀的 winmail.dat TNEF附件格式，那麼這個選項設定的檔案會被寄回給寄件者，在預設的檔案中會有簡易的範例。       </p>
<p>Sender Bad Filename Report       <br />Default: /opt/MailScanner/etc/reports/en/sender.filename.report.txt       <br />Default Linux: /etc/MailScanner/reports/en/sender.filename.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.filename.report.txt       <br />當一個郵件的附件被檔案規則所限制時，這個選項的檔案會被寄回給寄件者。       </p>
<p>Sender Virus Report       <br />Default:/opt/MailScanner/etc/reports/en/sender.virus.report.txt       <br />DefaultLinux:/etc/MailScanner/reports/en/sender.virus.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.virus.report.txt       <br />當一個郵件的附件因為感染病毒而被刪除時，這個選項的檔案會被寄回給寄件者。       </p>
<p>Hide Incoming Work Dir Default: yes       <br />當這個選項設定為 &quot;yes&quot; 的時候，病毒在哪個目錄被發現的完整路徑會在回報給使用者的訊息中被移除，這使得這個感染報告會容易了解的多。       </p>
<p>改變訊息表頭(Changes to Message Headers)       <br />Mail header Default: X-MailScanner:       <br />當所有的郵件被掃描過後，應該加入額外的表頭檔被加入，你也許要加入你網站的縮寫，所以你可利用 MailScanner來進行這個動作。       </p>
<p>Spam Header Default: X-MailScanner-SpamCheck:       <br />在偵測出郵件為廣告信時，加入此封郵件表頭的文字內容。       </p>
<p>Spam Score Header Default: X-MailScanner-SpamScore:       <br />假如 &quot;Spam Score&quot; 這個選項被設定為 &quot;yes&quot; 時，就代表這個表頭會使用列表中的字元。       </p>
<p>Information Header Default is X-MailScanner-Information:       <br />加入至所有郵件表頭的文字內容，用來提供一個簡單的 URL，或是聯絡資訊，如果你不想要這個表頭，只要把選項空白即可。       </p>
<p>Detailed Spam Report Default: yes       <br />如果這個選項設定為 &quot;yes&quot;，你將會收到完整的廣告信報告，如果設定為 &quot;no&quot;，那麼你只會得到一個 &quot;spam&quot; 或者是 &quot;not spam&quot; 的報告，這個實際的內容可以針對你的語系設定在 languages.conf中。       </p>
<p>Spam Score Character Default: s       <br />如果選項 &quot;Spam Score&quot; 被設定為 &quot;yes&quot; 的話，那麼這個選項的字元就會被替換在&quot;Spam Score Header&quot; 中。       </p>
<p>Clean Header Value Default: Found to be clean       <br />這是當在發現在某些有危險內容的郵件中有病毒，並完全清除後，被加在 &quot;Mail Header&quot; 中的文字。       </p>
<p>Infected Header Value&#160; Default: Found to be infected       <br />這是當發現在某些危險內容的郵件中被感染病毒時，被加在 &quot;Mail Header&quot; 中的文字。       </p>
<p>Disinfected Header Value Default: Disinfected       <br />這是當 MailScanner 把包含了巨集病毒的郵件完全解毒成功後，被加在 &quot;Mail Header&quot; 中的文字，郵件會被完整的寄到原來的收信人。       </p>
<p>Information Header Value Default: Please contact the ISP for more information       <br />這是在郵件通過 MailScanner 的掃描後，提供一個資訊給使用者的選項，它是被加在 &quot;Information Header&quot; 的文字，通常是用來提供使用者聯絡 ISP 或是網管人員的資訊。       </p>
<p>Multiple Headers Default: append       <br />如果郵件在你的伺服器上通過多個 MailScanner 的套件偵測後，它們會試圖在每封郵件的表頭上加上本身的訊息，這個選項(append)控制著當郵件表頭被被加入其他內容後，會再試圖加入我們的文字資訊在此郵件的表頭中。       </p>
<p>Hostname Default: the MailScanner       <br />這是放在送給使用者的訊息中 MailScanner 伺服器的名稱，如果擁有多個 MailScanner 伺服器在同一個站台，你必需要個別的去改變每個伺服器的名稱。       </p>
<p>Sign Messsages Already Processed Default: no       <br />當在同一個伺服器中，別的 MailScanner 伺服器已經處理過這封郵件，而且 &quot;Inline HTML/Text Signature&quot; 並不會被再一次的加入到郵件中(當設定為 &quot;no&quot; 時)。       </p>
<p>Sign Clean Messages Default: no       <br />如果這個選項被設定為 &quot;yes&quot;，那麼 &quot;Inline HTML/Text Signature&quot; 就會被加入到已被 MailScanner 清除乾淨的郵件中，你可以使用這個選項去通知收信人，說這個郵件已被確認無誤，並可以加入任何合法動作及版權說明。       </p>
<p>Mark Infected Messages Default: yes       <br />如果這個選項被設定為 &quot;yes&quot;，那麼當發現郵件中毒而被移除附件時 &quot;Inline HTML/Text Warning&quot; 會被加到每個郵件的開頭，這可以用來通知收信者去閱讀那些替代原本被感染的附件的感染報告檔案。       </p>
<p>Mark Unscanned Messages Default: yes       <br />如果這個選項被設定為 &quot;yes&quot;，那些沒被 MailScanner 掃描的郵件，會將包含選項 &quot;Unscanned Header Value&quot; 的字串加入到 &quot;Mail Header&quot; 中，這可用來通知你的使用者不要去使用這個郵件。       </p>
<p>Unscanned Header Value Default: Not scanned: please contact your Internet E−Mail Service Provider for details       <br />這是當郵件沒有被掃描時，&quot;Mail Header&quot; 中的訊息，如果 &quot;Mark Unscanned Messages&quot; 選項設定為 &quot;yes&quot; 的話，就會將這個訊息插入到郵件去通知使用者不要使用這個郵件。       </p>
<p>Deliver Cleaned Messages Default: yes       <br />當一個感染病毒的郵件被完整的解毒乾淨後，若此選項設定為 &quot;yes&quot;，則還是會將郵件寄給原來的收信人，如果你要使用類似先前的 MailScaner 版本中 &quot;Deliver From Local Domains&quot; 的關鍵字，那麼你就必需設定       <br />一個規則，那就是當設定為 &quot;yes&quot; 時，只能轉送郵件至內部網路， &quot;no&quot; 時只能轉送郵件至外部。       </p>
<p>Notify Senders Default: yes       <br />如果這個選項被設定為 &quot;yes&quot;，那就會傳回一個中毒訊息給原寄件人，這個文字會包含 &quot;Sender Reports&quot; 描述，會更容易的了解訊息內容。       </p>
<p>Never Notify Senders Of Precedence Default: list bulk       <br />這是一個用空白鍵分開的訊息，並且是 &quot;Precedence:&quot; 表頭值，假如你收到了一個惡意的有毒郵件，當這寄件者被列入 &quot;Precedence:&quot; 表頭列中的話，一般來說 MailScanner 會停止回應給這個寄件人，這通常是用       <br />在當一個伺服器沒人管理時，讓 MailScanner 停止無謂的回應。       <br />改變主旨列(Changes to the Subject: Line)       </p>
<p>Scanned Modify Subject Default: no # end       <br />如果這被設定成 &quot;start&quot; 或是&#160; &quot;end&quot;，那麼 &quot;Scanned Subject Text&quot; 這個文字內容就會被插入在開頭，或是結尾的主旨列中了，這只會發生在主旨列沒被其他原因更改的狀況下。       </p>
<p>Scanned Subject Text Default:       <br />這是當 &quot;Scanned Modify Subject&quot; 選項被選擇後，插入在開頭或結尾的主旨列中的內容。&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>
<p>Virus Modify Subject Default: yes       <br />如果這個選項被設定為 &quot;yes&quot;，那麼這個被感染病毒的郵件主旨列會被插入選項 &quot;Virus Subject Text&quot; 中的文字，在主旨的開頭。       </p>
<p>Virus Subject Text Default:       <br />這是 &quot;Virus Modify Subject&quot; 選項中，插入主旨列開頭的文字內容。       </p>
<p>Filename Modify Subject Default: yes       <br />如果這個選項被設定為 &quot;yes&quot;，那麼郵件中有著危險附件，並被移除掉的主旨中，會在開頭被插入 &quot;Virus Subject Text&quot; 的文字內容。       </p>
<p>Filename Subject Text Default: yes       <br /> 這是在選項&#160; &quot;Filename Modify Subject&quot; 設定為 &quot;yes&quot; 插入在主旨列開頭的文字。&#160; <br /></font><font face="華康儷圓 Std W7" size="3">     <br />&#160;&#160; Spam Modify Subject Default: yes       <br /> 如果這個選項被設定為 &quot;yes&quot;，那麼被偵測為廣告信的主旨列都會都被插入選項 &quot;Spam Subject Text&quot; 的文字，在主旨列開頭。       </p>
<p> Spam Subject Text Default:       <br /> 這是選項 &quot;Spam Modify Subject&quot; 設定為 &quot;yes&quot; 時，插入在主旨列開頭的文字。       </p>
<p>High Scoring Spam Modify Subject Default: yes       <br /> 如果這個選項被設定為 &quot;yes&quot;，那麼被定義為廣告信，並且 SpamAssassin 數量大於選項 &quot;High SpamAssassin Score&quot; 時，就都在主旨的開頭插入選項 &quot;High Scoring Spam Subject Text&quot; 的文字。       <br /> High Scoring Spam Subject Text       <br /> Default:       <br /> 這是選項 &quot;High Scoring Spam Modify Subject&quot; 設定為 &quot;yes&quot; 時，插入在主旨列開頭的文字。       <br />改變訊息主體(Changes to the Message Body)       <br /> Warning Is Attachment Default: yes       <br />當一個郵件中毒的附件被換成感染通知訊息的檔案時，在這個選項設定為 &quot;yes&quot; 時，是用附件的方式，若設定為 &quot;no&quot;，則是直接加入在郵件本文中。       </p>
<p>Attachment Warning Filename&#160; Default: VirusWarning.txt       <br />當一個郵件中毒的附件被換成感染通知訊息的檔案時，這是加入到郵件中的檔案名稱。       </p>
<p>Attachment Encoding Charset Default: us−ascii       <br />這是用來設定 &quot;VirusWarning.txt&quot; 文件中的字元編碼名稱，如果你不是用英語，而是用其他的語言，也許可以使用 &quot;ISO-8859-1&quot;。       <br />郵件存檔及監控(Mail Archiving and Monitoring)       </p>
<p>Archive Mail Default:       <br />這個選項提供了一個目錄或是郵件的位置列表，用來複製一分郵件，你可以設定正確設定你要的規則，只有寄出或收信的哪些可靠用戶郵件才會被存檔，注意這牽涉到私人隱私的問題，你必需要知道你在做什麼動作。       <br />通知系統管理者(Notices to System Administrators)       </p>
<p>Send Notices Default: yes       <br />每件每感染的郵件都要發通知給系統管理者嗎?       </p>
<p>Notices Include Full Headers Default: no       <br />如果這個選項被設定為 &quot;yes&quot;，那麼送給系統管理者的病毒通知將會包含完整的表頭，如果選項設定成 &quot;no&quot;，那麼只有受限格式的表頭包含在病毒通知中。       </p>
<p>Hide Incoming Work Dir in Notices Default: no       <br />如果這個選項被設定為 &quot;no&quot;，那麼在寄給系統管理者的病毒通知中就會包含在哪個目錄發現病毒的資訊，這對管理者來說更好了解病毒資訊。       </p>
<p>Notice Signature Default: −− \nMailScanner\nEmail Virus Scanner\nwww.mailscanner.info       <br />這個簽名會被放到寄給系統管理者通知的文件底部，會被 MailScanner 使用 &quot;\n&quot; 插入 &quot;line-breaks&quot; or &quot;newline&quot; 空白或換行字元。       </p>
<p>Notices From&#160; Default: MailScanner       <br />用在可見的郵件通知位址 &quot;From:&quot;&#160; 的部份中，而 &lt;user@domain&gt; 的部份則是被設成選項 &quot;Local Postmaster&quot; 的內容。       </p>
<p>Notices To Default: postmaster       <br />這是選項是提供是由哪些位址寄送通知出來的?你可以設定一個規則，用來提供在不同的 domain 使用不同的通知位址。       </p>
<p>Local Postmaster Default: postmaster       <br />當一個病毒警告被寄送到任何使用者時，這個寄件郵件都會用 &quot;From:&quot; 放在表頭檔。       <br />定義病毒掃描引擎及廣告信偵測(spam detectors)設定(Definitions of Virus Scanners and Spam Detectors)       </p>
<p>Spam List Definitions Default:/opt/MailScanner/etc/spam.lists.conf       <br />Defualt Linux: /etc/MailScanner/spam.lists.conf       <br />Default FreeBSD: /usr/local/etc/MailScanner/spam.lists.conf       <br />這個檔案包含了所有能被偵測為廣告信信來源的 &quot;Spam Lists&quot; (同樣叫做 RBL&#8217;s or DNSBL&#8217;s)，許多的Spam Lists 都可被加入到這個檔案中，但它一開始已經包含了大部份的廣告信列表(Spam Lists)。       </p>
<p>Virus Scanner Definitions       <br />Default: /opt/MailScanner/etc/virus.scanners.conf       <br />Default Linux: /etc/MailScanner/virus.scanners.conf       <br />Default FreeBSD: /usr/local/etc/MailScanner/virus.scanners.conf       <br />這個檔案包含了所有 virus scanner 指令的位置，在啟動 MailScanner 前先確認這個檔案是否正確，否則你的 MailScanner 可能無法啟動。       <br />廣告信偵測及列表(DNS阻檔列表)(Spam Detection and Spam Lists (DNS Blocklists))       </p>
<p>Spam Checks Default: yes       <br />如果這個選項被設定為 &quot;yes&quot;，那麼郵件都會被確認是否為廣告信件。       </p>
<p>Spam List Default: ORDB−RBL Infinite−Monkeys       <br />這個選項提供了一個用空白鍵來分開的 &quot;Spam Lists&quot;( 或 RBL&#8217;s or DNSBL&#8217;s)列表，來確認每個郵件是否為廣告信件，這個列表是用 IP Address 來表示是那些位址寄信給你的 MailScanner 伺服器，每個用在這的列表必須被定義在之前被提到的選項 &quot;Spam List Definitions&quot; 檔案中。       </p>
<p>Spam Domain List Default:       <br />這個選項提供了一個用空白鍵來分開的 &quot;Spam Lists&quot;( 或 RBL&#8217;s or DNSBL&#8217;s)列表，來確認每個郵件是否為廣告信件，這個列表是用 domain name 來表示是那些位址寄信給你的 MailScanner 伺服器，每個用在這的列表必須被定義在之前被提到的選項 &quot;Spam List Definitions&quot; 檔案中。       </p>
<p>Spam List Timeout Default: 10       <br />這是代表在每個出現在&#160; &quot;Spam List&quot; 列表中的郵件在偵測後能等得的秒數，如果超過這個時間，那麼郵件會被刪除並忽略。       </p>
<p>Max Spam List Timeouts Default: 7       <br />如果在偵測 &quot;Spam List&quot; 列表中的郵件超過七次一直沒有成功過時，那麼一般就是 &quot;Spam List&quot; 列表不能被讀取，當 MailScanner 在數小時重新啟動在數小時後，它會再嚐試使用一次這個列表，免得服務剛好恢復了。       </p>
<p>Is Definitely Not Spam       <br />Default: /opt/MailScanner/etc/rules/spam.whitelist.rules       <br />Default Linux: /etc/MailScanner/rules/spam.whitelist.rules       <br />Default FreeBSD: /usr/local/etc/MailScanner/rules/spam.whitelist.rules       <br />這個選項通常都是一整個規則，任何郵件通過這個規則的結果若為 &quot;yes&quot; 的話，就不會被記成廣告信件，這個規則通常都是建立一個非廣告信的 &quot;清單(whitelist)&quot;，你也許可以包含一些你自已的站台，在這個規則檔中。       </p>
<p>Is Definitely Spam Default: no       <br />這個選項通常都是一整個規則，任何郵件通過這個規則的結果若為 &quot;yes&quot; 的話，就會被記成廣告信件，這個規則通常都是建立一個已知的廣告信的 &quot;黑名單(blacklist)&quot;。       </p>
<p>SpamAssassin設定(SpamAssassin)       <br />Use SpamAssassin Default: no       <br />你要使用 SpamAssassin 套件來偵測廣告信件嗎? 你必預先安裝 SpamAssassin 才可以正常的在ailScanner 中使用這個選項。       </p>
<p>Max SpamAssassin Size Default: 90000       <br />SpamAssassin 在處理每個郵件就會非常緩慢，反覆的工作是個問題，這個選項提供了每個被SpamAssassin 處理的郵件的最大大小，最大的廣告信目前被發現的大小為 50,000 bytes。       </p>
<p>Required SpamAssassin Score Default: 5       <br />這個選項設定了最小的 SpamAssassin 記號值者為廣告信，它取代了 SpamAssassin 擁有的 &quot;required_hits&quot; 數值，所以這個規則可以設定不同值至不同的使用者及 domains。       </p>
<p>High SpamAssassin Score Default: 20       <br />當郵件的 SpamAssassin 記號值大於這個選項設定值時，一個不同的 &quot;Spam Actions&quot; 設定會被適用於郵件記錄最小的此值。       </p>
<p>SpamAssassin Auto Whitelist Default: no       <br />SpamAssassin 有個特色就是可以測量從不同位址發出的廣告信及非廣告信的比率，如果寄信位的信件大多不為廣告信，系統會自動的增加位址至它本身擁有的非廣告信清單(whitelist)，這個選項開啟了 SpamAssassin 的特色。       </p>
<p>SpamAssassin Prefs File       <br />Default: /opt/MailScanner/etc/spam.assassin.prefs.conf       <br />Default Linux: /etc/MailScanner/spam.assassin.prefs.conf       <br />Default FreeBSD: /usr/local/etc/MailScanner/spam.assassin.prefs.conf       <br />pamAssassin 使用了一個 &quot;使用者喜好值&quot; 的檔案，這個檔案可被用來設定各種 SpamAssassin的值，選項中就是此檔案的名稱，這個 RBL/DNSBL/&quot;Spam List&quot; 最有用的特色就是可以利用SpamAssassin 來確認可以關閉那些已經被 MailScanner 確認過一次的郵件過濾選項，避免再被過濾一次。       </p>
<p>SpamAssassin Timeout Default: 30       <br />這個選項是設定每個被 SpamAssassin 處理的郵件的最大等待時間(秒)，這可以有效的保護偶而出問題的 SpamAssassin，避它有時可能會用數小時的時間去處理一封郵件。       </p>
<p>Max SpamAssassin Timeouts Default: 20       <br />如果數個連續二十次呼叫至 SpamAssassin都超出等待時間，那麼 MailScanner 會決定關閉pamAssassin 使得工作順利，它會因此被關閉數小時直到 MailScaner重新啟動，在這期間它會一直嚐試。       </p>
<p>Check SpamAssassin If On Spam List Default: yes       <br />如果已啟動郵件 &quot;Spam List&quot; 過濾列表，那麼 SpamAssassin 就會被跳過不執行，當這個選項在被設定為 &quot;no&quot; 的時候，這可以幫助減少當你使用 SpamAssassin 時所造成的負載。       </p>
<p>Always Include SpamAssassin Report Default: no       <br />如果這個選項被設定為 &quot;yes&quot; 時，那麼選項&#160; &quot;Spam Header&quot; 的內容會被包含在每個郵件的表頭中，所以這是出現在當無法過過使用者的廣告信的狀況下。       </p>
<p>Spam Score Default: yes       <br />如果一個郵件為廣告信件，而這個選項被設定為 &quot;yes&quot; 時，那麼表頭將會被加入到 pamAssassin 記號中的每一個點含有 1 個特性的資訊。這個允許使用者去選擇他們自已的pamAssassin 記號，用在不同的狀況下，像是存檔或刪除他。       <br />如何處理Spam(What to do with Spam)       </p>
<p>Spam Actions Default: deliver       <br />這個選項可以聯合一個或多個之後的關鍵字來達成處理 Spam 的方法。       <br />deliver&quot; &#8212; 郵件正常的轉送至原來的收信人。       <br />delete&quot;&#160; &#8212; 刪除郵件。       <br />store&quot; &#8212; 將郵件存放至隔離區。       <br />bounce&quot; &#8212; 將郵件退給寄信人。       <br />forward&quot; &#8212; 提供一個 forward 的郵件位址給系統，系統會自動轉寄一份。       <br />striphtml&quot; &#8212; 將內嵌 HTML 的郵件轉成 Text，你必需要加入 &quot;deliver&quot;，系統才會幫你寄郵件。       <br />High Scoring Spam Actions Default: deliver       <br />這和 &quot;Spam Actions&quot; 選項一樣，但它是針對 SpamAssassin 記錄為 &quot;High Scoring&quot; 的郵件。       </p>
<p>Sender Spam Report       <br />Default: /opt/MailScanner/etc/reports/en/sender.spam.report.txt       <br />DefaultLinux:/etc/MailScanner/reports/en/sender.spam.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.spam.report.txt       <br />當退信這個動作被 &quot;Spam List&quot; check 及 SpamAssassin 所啟動時，系統會寄一個訊息檔出去。       </p>
<p>Sender Spam List Report       <br />Default: /opt/MailScanner/etc/reports/en/sender.spam.rbl.report.txt       <br />Default Linux: /etc/MailScanner/reports/en/sender.spam.rbl.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.spam.rbl.report.txt       <br />當退信這個動作被 &quot;Spam List&quot; check 所啟動時，系統會寄一個訊息檔出去。       </p>
<p>Sender SpamAssassin Report       <br />Default: /opt/MailScanner/etc/reports/en/sender.spam.sa.report.txt       <br />Default Linux: /etc/MailScanner/reports/en/sender.spam.sa.report.txt       <br />Default FreeBSD: /usr/local/share/MailScanner/reports/en/sender.spam.sa.report.txt       <br />當退信這個動作被 SpamAssassin 所啟動時，系統會寄一個訊息檔出去。       <br />系統紀錄設定(System Logging)       </p>
<p>Syslog Facility Default: mail       <br />這是用來啟動 MailScanner 記錄的使用者名稱，如果你不知道怎麼設定，最好是保留，或參考syslogd的 man 手冊。       </p>
<p>Log Spam Default: no       <br />如果這個選項被設定為 &quot;yes&quot; 時，那麼每個廣告信的訊息都會被紀錄至 syslog中，如果收到了大量的廣告信，或是伺服器負載很重時，你也許要將這個選項關閉，但是你會在偵測廣告信件時遇到些麻煩，設定為 &quot;yes&quot; 暫時地，可以提供你有效的除錯方向。       </p>
<p>Log Permitted Filenames Default: no       <br />如果這個選項被設定為 &quot;yes&quot; 時，每個通過 &quot;filename rules&quot; 的附件檔檔名都會被紀錄至 syslog中，一般來說這是不必要的，但如果你要除錯時，也許這個選項會有用處。       <br />進階設定(Advanced Settings)       </p>
<p>Debug Default: no       <br />並非給一般使用者使用，如果設定為 &quot;yes&quot; 的話，會使 MailScanner 進入除錯模式，它會建立些許不同的輸出，而且不會變成一個 daemon。       </p>
<p>Always Looked Up Last Default: no       <br />實際上這個選項從未被使用過，但它被認定為最後處理一批郵件的方式，這是被設定用在一個有副作用的自訂連接函數，有時它會是有用的，像是紀錄大量的一批郵件的訊息在一個檔案或是一個 SQL 資料庫中。       </p>
<p>Deliver In Background Default: yes       <br />當試圖要轉送任何郵件(當 &quot;Delivery Method = batch&quot;)時，sendmail/Exim 命令會在背景執行，所以 MailScanner 不會去等待轉送郵件的命令完成，這裡不建議你將它設定為 &quot;no&quot;。       </p>
<p>Delivery Method Default: queue       <br />假如這個選項設定為 &quot;batch&quot; 時，那麼 MailScanner 會試圖用一批為單位來一次處理所有郵件，假如這個選項設定為 &quot;queue&quot; 時，MailScanner 會將郵件放到 queue 目錄中，處理完成後sendmail/Exim 去轉送郵件，這兩個設定對於伺服器的負載會有非常大的影響。       </p>
<p>Lockfile Dir Default: /tmp       <br />這個目錄是放置 lock 檔案的位置，是用在當 Virus Scanner 在升級病毒碼時，停止它自本身的動作，如果你改變了這個檔案的位置，那也要去改變 &quot;autoupdate&quot; 檔的設定。       </p>
<p>Lock Type       <br />不要對這個檔進行任何的設定，除非你對他有絕對的認知。       </p>
<p>Minimum Code Status Default: supported       <br />有些 Virus Scanner 不被 MailScanner 的作者支援，而且他們可能是使用別人提供的程式碼，如果這個選項被設錯了的時候，那麼可能就會在 maillog 中得到錯誤的訊息，在這錯誤訊息中也許會提供你站台的資訊，或是一些描述選項的細節，而且也會告訴你那些 Virsu Scanner 才可以被 MailScanner 所支援。       <br />附件檔名規則(Attachment Filename Ruleset)       <br />這是包含在設定檔中的選項 &quot;Filename rules&quot; 檔案名稱，此檔案中包含了用來判定任何被指定的附件檔是要被接受還是拒絕，不管在此類檔案中是否含有病毒，這不能只是被用在嚴格的測量，像擋住所以像擁有副檔名為 EXE 的檔案，但它可以使用 Perl 的語法來提供功能，像偵測試圖隱藏的檔案名稱。許多 Windows 的郵件程式(例如：Microsoft Outlook)在試圖不要阻礙用戶使用的前提下，都會藏共有文件檔名延伸，這個規則在當一個附件叫做 &quot;Your Document.doc&quot;，被顯示為 &quot;Your Document&quot; 時是有效的，一個更惡意的附件名原本可能為 &quot;Looks Safe.txt.pif&quot;       <br />，而被改成 &quot;Looks Safe.txt&quot;，很多使用者會以為它就是個 TXT 的檔案，而以為它是安全的，所以即使是個有經驗的使用者，也許也會去將這個檔案使用像 Notepad 這個程式去開啟，然而這個檔案卻是一個 Ms-Dos 快捷檔，並且可以執行任何任意的指令，而使用者根本不會知情。       <br />這個規則是按至頭到尾的順序，在此檔中配合，而每個規則則都是使用一個合適的文法，每行可以由空白、註解(開始是 # 符號)組成，可以用 TAB鍵去區分每個部份。       <br />allow / deny       <br />接受或拒絕檔案名稱。       <br />regular expression       <br />此規則將被執行，如果附件檔名符合這個規則的話，它可以隨意使用大量的 &quot;/&quot;符號。       <br />log text       <br />如果符合規則，那麼文字會被放在 syslog中，如果設為 &quot;-&quot; 的話，沒有文字會被紀錄。       <br />user text       <br />如果符合規則，那麼文字會被寄到使用者信箱，如果設為 &quot;-&quot; 的話，不會有文字會被寄送。I設定檔 example 會示範容易使用的文法。</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e4%b8%ad%e6%96%87%e8%a8%ad%e5%ae%9a%e8%aa%aa%e6%98%8e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner 的好幫手 MailWatch</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e7%9a%84%e5%a5%bd%e5%b9%ab%e6%89%8b-mailwatch/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e7%9a%84%e5%a5%bd%e5%b9%ab%e6%89%8b-mailwatch/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 05:38:22 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[MailScanner MailWatch]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e7%9a%84%e5%a5%bd%e5%b9%ab%e6%89%8b-mailwatch/</guid>
		<description><![CDATA[自己架設後，還滿好用的。
參考出處：http://erichuang89.blogspot.com/2008/12/mailscanner-mailwatch.html
<p>MailScanner 在處理垃圾郵件和病毒信件時 它的紀錄都是文字檔 , 紀錄詳細每封信件的處理過程 . 文字敘述的紀錄檔 當累積大量的資訊時就很難判讀   MailWatch 就是 MailScanner 的好搭檔 , 它把 MailScanner 的紀錄轉換成WEB 可以很清楚的辨別每一封來信的狀況 , 非常容易判讀 . 如下圖 :        (圖片來源 : 官方網站 http://mailwatch.sourceforge.net/)    它可以看每封信件的判斷狀況 , 讓您更加清楚知道判斷依據 如下圖 :        (圖片來源 : 官方網站 http://mailwatch.sourceforge.net/)  [...]]]></description>
			<content:encoded><![CDATA[<h5>自己架設後，還滿好用的。</h5>
<h5>參考出處：<a title="http://erichuang89.blogspot.com/2008/12/mailscanner-mailwatch.html" href="http://erichuang89.blogspot.com/2008/12/mailscanner-mailwatch.html">http://erichuang89.blogspot.com/2008/12/mailscanner-mailwatch.html</a></h5>
<p>MailScanner 在處理垃圾郵件和病毒信件時 它的紀錄都是文字檔 , 紀錄詳細每封信件的處理過程 . 文字敘述的紀錄檔 當累積大量的資訊時就很難判讀   <br />MailWatch 就是 MailScanner 的好搭檔 , 它把 MailScanner 的紀錄轉換成WEB 可以很清楚的辨別每一封來信的狀況 , 非常容易判讀 . 如下圖 :    <br /><a href="http://2.bp.blogspot.com/_WDZA31cmLRA/SVR8CjBdF4I/AAAAAAAAAMs/Z3LmD-j1Gxs/s1600-h/1.jpg"><img alt="" src="http://2.bp.blogspot.com/_WDZA31cmLRA/SVR8CjBdF4I/AAAAAAAAAMs/Z3LmD-j1Gxs/s400/1.jpg" border="0" /></a>    <br />(圖片來源 : 官方網站 <a href="http://mailwatch.sourceforge.net/">http://mailwatch.sourceforge.net/</a>)    <br />它可以看每封信件的判斷狀況 , 讓您更加清楚知道判斷依據 如下圖 :    <br /><a href="http://3.bp.blogspot.com/_WDZA31cmLRA/SVR9Aq2-KqI/AAAAAAAAAM0/TuFyJ8fQWjo/s1600-h/1.jpg"><img alt="" src="http://3.bp.blogspot.com/_WDZA31cmLRA/SVR9Aq2-KqI/AAAAAAAAAM0/TuFyJ8fQWjo/s400/1.jpg" border="0" /></a>    <br />(圖片來源 : 官方網站 <a href="http://mailwatch.sourceforge.net/">http://mailwatch.sourceforge.net/</a>)    <br /><strong>安裝步驟 :</strong>    <br /><strong></strong>    <br /><strong>1 : 先前須檢查是否有安裝 Apache , MySQL 及 PHP , PHP-gd , PHP-pear , PHP-mysql , PHP-devel 及相關元件</strong>    <br />指令 : rpm -qa httpd , rpm -qa php* , rpm -qa mysql</p>
<p>結果如下圖 :</p>
<p><a href="http://2.bp.blogspot.com/_WDZA31cmLRA/SVSHj9001lI/AAAAAAAAAM8/rbQMneD9M-M/s1600-h/1.jpg"><img alt="" src="http://2.bp.blogspot.com/_WDZA31cmLRA/SVSHj9001lI/AAAAAAAAAM8/rbQMneD9M-M/s400/1.jpg" border="0" /></a>    <br /><strong></strong></p>
<p><strong>2 : 確認及設定 開機啟動 MySQL , httpd 服務</strong>    <br />設定開機啟動服務 :    <br />chkconfig http on    <br />chkconfig mysqld on    <br />查看是否有啟動服務 : </p>
<p>ps -ef grep mysql   <br />ps -ef grep httpd    <br />有啟動服務 , 如下圖 :    <br /><a href="http://3.bp.blogspot.com/_WDZA31cmLRA/SVSMCTivsPI/AAAAAAAAANE/mMkDMKX_X4w/s1600-h/1.jpg"><img alt="" src="http://3.bp.blogspot.com/_WDZA31cmLRA/SVSMCTivsPI/AAAAAAAAANE/mMkDMKX_X4w/s400/1.jpg" border="0" /></a>    <br />若無 則啟動服務    <br />service mysql start    <br />service httpd start    <br /><strong>3 : 若第一次使用 mysql 記得用下列指令變更密碼</strong>    <br />/usr/bin/mysqladmin -u root password &#8216;XXXXXX&#8217;    <br /><strong>4 : 設定 php.ini</strong>    <br />vi /etc/php.ini    <br />修改下列參數    <br />short_open_tag = on    <br />safe_mode = off    <br />register_globals = off    <br />magic_quotes_gpc = on    <br />magic_quotes_runtime = off    <br />session.auto_start = 0    <br /><strong>5 : 下載 及安裝 MailWatch</strong>    <br />下載點 : <a href="http://mailwatch.sourceforge.net/">官網</a>    <br />下載點 : <a href="http://sourceforge.net/project/showfiles.php?group_id=87163">http://sourceforge.net/project/showfiles.php?group_id=87163</a>    <br />安裝 MailWatch    <br />tar -zxvf mailwatch-x.x.x.tar.gz    <br /><strong>6 : 建立 MailWatch 資料庫</strong>    <br />以下指令必須使用 root 登入    <br />cd mailwatch-x.x.x    <br />mysql -p &lt;&gt;    <br /><strong>7 : 修改 MailWatch.pm 檔案 , 並複製到別的目錄</strong>    <br />vi MailWatch.pm    <br />my($db_name) = &#8216;mailscanner&#8217;; (資料庫名稱)    <br />my($db_host) = &#8216;localhost&#8217;; (資料庫位置)    <br />my($db_user) = &#8216;root&#8217;; (使用者帳號)    <br />my($db_pass) = &#8216;xxxxx&#8230;&#8217;; (使用者密碼)    <br />cp MailWatch.pm /usr/lib/MailScanner/MailScanner/CustomFunctions/    <br /><strong>8 : 新增 mailwatch 網頁的使用者</strong>    <br />mysql mailscanner -u root -p    <br />Enter password : xxxxxx    <br />mysql &gt; insert into user values (&#8217;root&#8217;,md5(&#8217;xxxxx&#8217;),&#8217;root&#8217;,'A&#8217;,'0&#8242;,&#8217;0&#8242;,&#8217;0&#8242;,&#8217;0&#8242;,&#8217;0&#8242;);    <br /><strong>9 : 安裝 和 設定 MailWatch</strong>    <br />在之前解壓縮之後產生的目錄裡有一個子目錄 , 名稱為 mailscanner    <br />mv mailscanner /var/www/html    <br />修改目錄權限    <br />cd /var/www/html/mailscanner    <br />chown root:apache images    <br />chmod ug+rwx images    <br />chown root:apache images/cache    <br />chmod ug+rwx images/cache    <br /><strong>10 : 修改 conf.php 設定</strong>    <br />cd /var/www/html/mailscanner    <br />cp conf.php.example conf.php    <br />vi conf.php    <br />define(DB_TYPE , &#8216;mysql&#8217;);    <br />define(DB_USER, &#8216;root&#8217;);    <br />define(DB_PASS, &#8216;XXXXX&#8217;);    <br />define(DB_HOST, &#8216;localhost&#8217;);    <br />define(DB_NAME, &#8216;mailscanner&#8217;);    <br /><strong>11 : 修改 MailScanner 設定</strong>    <br />先暫停 MailScanner    <br />service MailScanner stop    <br />vi /etc/MailScanner/MailScanner.conf    <br />Quarantine User = root    <br />Quarantine Group = apache    <br />Quarantine Permissions = 0660    <br />Quarantine Whole Message = yes    <br />Quarantine Whole Message As Queue Files = no    <br />Detailed Spam Report = yes    <br />Include Scores In SpamAssassin Report = yes    <br />Always Looked Up Last = &amp;MailWatchLogging    <br /><strong>11 : 整合 黑名單和白名單</strong>    <br />在 MailWatch 也可以設定黑白名單    <br />把之前解壓縮的目錄裡的檔案 SQLBlackWhiteList.pm 複製一份到 /usr/lib/MailScanner/MailScanner/CustomFunctions    <br />vi SQLBlackWhiteList.pm    <br />my($db_name) = &#8216;mailscanner&#8217;;    <br />my($db_host) = &#8216;localhost&#8217;;    <br />my($db_user) = &#8216;root&#8217;;    <br />my($db_pass) = &#8216;xxxxx&#8217;;    <br />vi /etc/MailScanner/MailScanner.conf    <br />Is Definitely Not Spam = &amp;SQLWhitelist    <br />Is Definitely Spam = &amp;SQLBlacklist    <br /><strong>12 : 修改 MailScanner 目錄下的 spam.assassin.prefs.conf     <br /></strong>vi /etc/MailScanner/spam.assassin.prefs.conf    <br />加入下列兩行    <br />bayes_path /etc/MailScanner/bayes/bayes    <br />bayes_file_mode 0660    <br /><strong>13 : 建立 bayes 新目錄 , 並把原有 spamassassin 資料庫複製過來</strong>    <br />mkdir /etc/MailScanner/bayeschown root:apache /etc/Mailscanner/bayes    <br />chmod g+rws /etc/MailScanner/bayes    <br />cp /root/.spamassasin/bayes_* /etc/MailScanner/bayes    <br />chown root:apache /etc/MailScanner/bayes/bayes_*    <br />chmod g+rws /etc/MailScanner/bayes/bayes_*    <br /><strong>14 : 測試 spam.assassin.prefs.conf     <br /></strong>spamassassin -D -p /etc/MailScanner/spam.assassin.prefs.conf &#8211;lint    <br /><strong>15 : 重新啟動 MailScanner     <br /></strong>service MailScanner restart &amp;&amp; tail -f /var/log/maillog    <br />若看到如下圖的訊息    <br />裡面有一行：    <br />Config: calling custom init function MailWatchLogging    <br />表示安裝成功    <br /><a href="http://3.bp.blogspot.com/_WDZA31cmLRA/SVh-cmji8OI/AAAAAAAAANM/T5cw2qWF950/s1600-h/1.png"><img alt="" src="http://3.bp.blogspot.com/_WDZA31cmLRA/SVh-cmji8OI/AAAAAAAAANM/T5cw2qWF950/s400/1.png" border="0" /></a></p>
<p>可以在瀏覽器網址打 <a href="http://xxx.xxxx.xxx/mailscanner">http://xxx.xxxx.xxx/mailscanner</a></p>
<p>輸入帳號密碼即可看到漂亮的報表</p>
<p>最後 隨著時間的增加 記錄也會不斷的增加 , 可以用下列的 SQL 指令來刪除過期的資料   <br />delete from maillog where date &lt; &#8216;xxxx(年)-xx(月)-xx(日)&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/10/06/mailscanner-%e7%9a%84%e5%a5%bd%e5%b9%ab%e6%89%8b-mailwatch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner阻擋加密的壓縮檔處理方式</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/09/24/mailscanner%e9%98%bb%e6%93%8b%e5%8a%a0%e5%af%86%e7%9a%84%e5%a3%93%e7%b8%ae%e6%aa%94%e8%99%95%e7%90%86%e6%96%b9%e5%bc%8f/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/09/24/mailscanner%e9%98%bb%e6%93%8b%e5%8a%a0%e5%af%86%e7%9a%84%e5%a3%93%e7%b8%ae%e6%aa%94%e8%99%95%e7%90%86%e6%96%b9%e5%bc%8f/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 03:09:45 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[MailScanner]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/09/24/mailscanner%e9%98%bb%e6%93%8b%e5%8a%a0%e5%af%86%e7%9a%84%e5%a3%93%e7%b8%ae%e6%aa%94%e8%99%95%e7%90%86%e6%96%b9%e5%bc%8f/</guid>
		<description><![CDATA[<p>今天公司收到一封別家公司寄來的信，附加檔案是ZIP，但是有加密，發現MailScanner 會直接擋下來，連設定不掃描壓縮檔也是一樣備擋下來，訊息如下：</p>
<p>The following e-mails were found to have: Other Bad Content Detected : Password-protected Archive Detected</p>
<p>最後直接設定放行有加密的壓縮檔案就解決了這個問題了。只是安全性有待考量@@</p>
<p>設定 MailScanner 不掃描壓縮檔案：</p>
<p>=====================================================</p>
<p>修改 vi /etc/MailScanner/MailScanner.conf 內的</p>
<p># To disable this feature set this to 0.   # A common useful setting is this option = 0, and Allow Password-Protected    # Archives = no. That block password-protected archives [...]]]></description>
			<content:encoded><![CDATA[<p>今天公司收到一封別家公司寄來的信，附加檔案是ZIP，但是有加密，發現MailScanner 會直接擋下來，連設定不掃描壓縮檔也是一樣備擋下來，訊息如下：</p>
<p>The following e-mails were found to have: Other Bad Content Detected : Password-protected Archive Detected</p>
<p>最後直接設定放行有加密的壓縮檔案就解決了這個問題了。只是安全性有待考量@@</p>
<p>設定 MailScanner 不掃描壓縮檔案：</p>
<p>=====================================================</p>
<p>修改 vi /etc/MailScanner/MailScanner.conf 內的</p>
<p># To disable this feature set this to 0.   <br /># A common useful setting is this option = 0, and Allow Password-Protected    <br /># Archives = no. That block password-protected archives but does not do    <br /># any filename/filetype checks on the files within the archive.    <br /># This can also be the filename of a ruleset.    <br />&#160;&#160; Maximum Archive Depth = 0 (將此設定改為0就可以) </p>
<p>=====================================================</p>
<p>設定 MailScanner 放行有加密過的壓縮檔案：</p>
<p>=====================================================</p>
<p>修改 vi /etc/MailScanner/MailScanner.conf </p>
<p># Should archives which contain any password-protected files be allowed?   <br /># Leaving this set to &quot;no&quot; is a good way of protecting against all the    <br /># protected zip files used by viruses at the moment.    <br /># This can also be the filename of a ruleset.    <br />Allow Password-Protected Archives = yes </p>
<p>然後重新啟動，即可放行有加密的壓縮檔案。 </p>
<p>=====================================================</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/09/24/mailscanner%e9%98%bb%e6%93%8b%e5%8a%a0%e5%af%86%e7%9a%84%e5%a3%93%e7%b8%ae%e6%aa%94%e8%99%95%e7%90%86%e6%96%b9%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

