tjm 修改聖經地理,聖經閱讀程式,撰寫聖經公會每日金句程式
ksf 舊RAID更新外殼,有利保固
joshua:搞定tech
0, 預備工作
安裝 yum-utils
取得 sendmail rpm
yumdownloader sendmail
解開 sendmail-8.13.8-2.el5.i386.rpm
rpm2cpio sendmail-8.13.8-2.el5.i386.rpm | cpio -ivd
(會解出 sendmail 的內含檔案, 取 sendmail.mc)
cp etc/mail/sendmail.mc /etc/mail/sendmail.mc_original, 以此為依據,
1, amavisd-new 網站
http://www.ijs.si/software/amavisd/
2, 停掉 MailScanner
service MailScanner stop
chkconfig –level 35 MailScanner off
3, 安裝
yum -y install amavisd-new amavisd-new-milter clamav clamav-db –enablerepo dag
4, 設定
(1) sendmail
cp /etc/mail/sendmail.mc_original /etc/mail/1.mc
vi 1.mc 加入以下內容
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA’)dnl
MASQUERADE_AS(`fhl.net’)
FEATURE(masquerade_envelope)
FEATURE(allmasquerade)
INPUT_MAIL_FILTER(`greylist’, `S=local:/var/milter-greylist/milter-greylist.sock’)
INPUT_MAIL_FILTER(`milter-amavis’, `S=local:/var/amavis/amavis-milter.sock, F=T, T=S:20m;R:20m;E:40m’)dnl
另外要修改 /etc/init.d/amavisd
MILTER_SOCKET="local:/var/amavis/amavis-milter.sock"
/etc/amavisd.conf 也要參照 tech 修改一下