http://www.sng.ecs.soton.ac.uk
先別高興,這是支援Postfix 2.x版的安裝方式,由於Redhat 9預設的Postfix 1.x版
並不支援header_checks map: HOLD的map方式,
所以以下會分成兩個版本來進行.
先解壓縮
]#tar zxvf MailScanner-4.33.3-1.rpm.tar
安裝(在此再次強調,安裝linux時最好選擇Everythi
rh8.0/9.0來說,才不過佔了4-5G,比起後來缺東缺西的痛苦
]#./install.sh
<p.s.>會等待需多點時間,因為除了MailScanner外還會有
大部份是perl的套件
------------------------------
13-1.MailScanner for Postfix 2.x的設定方式
安裝完成後,MailScanner會自動幫你啟動
postfix,所以這時並未啟動,先設定 MailScanner.
vi /etc/postfix/main.cf
加入這行:
header_checks = regexp:/etc/postfix/header
然後在/etc/postfix下增加一個header
]#vi /etc/postfix/header_checks
加入這行:
/^Received:/ HOLD
編輯MailScanner的設定檔
]#vi /etc/MailScanner/MailScanner
修改以下項目,請依自己需求修改:
------------------------------
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
Run As User = postfix
Run As Group = postfix
MTA = postfix
Expand TNEF = no (Sophos/McAfee設定為 "no",其它是"yes")
Use SpamAssassin = yes
SpamAssassin User State Dir =/var/spool/MailScanner
Virus Scanning = yes
Virus Scanners = sophossavi
Sophos IDE Dir = /usr/local/sav
Sophos Lib Dir = /usr/local/lib
Monitors For Sophos Updates = /usr/local/sav/*ides.zip
Deliver Unparsable TNEF = yes (使用outlook的user可能需要)
Allow IFrame Tags = yes (允許IFrame標籤的信件)
Allow Script Tags = yes (允許Script標籤的信件,一些像outlook內有信紙功
的郵件需插入Script Tags)
Allow Object Codebase Tags = yes (允許 HTML中的 <Object Codebase=...> 標
籤包含在郵件中)
Attachment Encoding Charset = ISO-8859-1 (將感染通知訊息以附件寄送,並編
碼為ISO-8859-1,若Warning Is Attachment = no,不以附件寄送,可能產生亂碼)