推荐 postfix+mailscanner 主要是有 mrtg支持 结构上不如postfix+am[11]

[入库:2005年9月21日] [更新:2007年3月24日]

本文简介:

http://www.sng.ecs.soton.ac.uk/mailscanner/install/postfix.shtml
先別高興,這是支援Postfix 2.x版的安裝方式,由於Redhat 9預設的Postfix 1.x版
並不支援header_checks map: HOLD的map方式,
所以以下會分成兩個版本來進行.

先解壓縮
]#tar zxvf MailScanner-4.33.3-1.rpm.tar.gz

安裝(在此再次強調,安裝linux時最好選擇Everything,將所有套件全部裝進去,以
rh8.0/9.0來說,才不過佔了4-5G,比起後來缺東缺西的痛苦,會快樂得多)
]#./install.sh

<p.s.>會等待需多點時間,因為除了MailScanner外還會有其他必須要用到的套件,
大部份是perl的套件
---------------------------------------------------------------------------------------------------------------------------------------------

13-1.MailScanner for Postfix 2.x的設定方式
安裝完成後,MailScanner會自動幫你啟動,但是因為預設啟動的是sendmail,不是
postfix,所以這時並未啟動,先設定 MailScanner.
vi /etc/postfix/main.cf
加入這行:
header_checks = regexp:/etc/postfix/header_checks

然後在/etc/postfix下增加一個header_checks檢查檔:
]#vi /etc/postfix/header_checks

加入這行:
/^Received:/ HOLD

編輯MailScanner的設定檔
]#vi /etc/MailScanner/MailScanner.conf

修改以下項目,請依自己需求修改:
-----------------------------------------------------------
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/spamassassin
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,不以附件寄送,可能產生亂碼)

本文关键:推荐 postfix+mailscanner 主要是有 mrtg支持 结构上不如postfix+am
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top