構(gòu)建反病毒反垃圾郵件系統(tǒng)(六)_Mail服務(wù)器教程
安裝四個下載的軟件包:
# dpkg -i *.deb 修改/etc/amavis/amavisd.conf: @inet_acl = qw( 127/8 1.2.3.4/32 ); # 1.2.3.4 is your external ip .. because want maybe also accept mail from that interface, it's up to you. 指定使用uvscan: @av_scanners = ( ['NAI McAfee AntiVirus (uvscan)', 'uvscan', ); 找到/etc/postfix/master.cf如下行: smtp inet n - n - - smtpd 改為如下: smtp inet n n n - - smtpd -o content_filter=smtp-amavis:[127.0.0.1]:10024 重啟postfix,這樣在收到病毒郵件的時候能夠在日志文件看到如下的信息: Jul 16 15:34:22 xxx amavis[30997]: (30997-09) INFECTED (W32/Nimda.gen@MM), (?) -> <xxx@xxx.org>, quarantine virus-20030716-153422-30997-09, Message-ID: <20030716073414.520D3E5C2F@xxx> 三、防垃圾郵件部分 垃圾郵件的防范必須掌握好尺度,postfix本身提供了header_check、body_check、access、classes等方式來拒絕郵件,可以參考如下地址的樣例,結(jié)合自己的情況進行修改也能阻止一部分垃圾郵件: http://www.XXXX.com/guides/postfix_uce_header.html 不過以上配置文件需要管理員根據(jù)自己情況手工進行修改,如果直接采用的話,那么國內(nèi)很多郵件你將收不到。 1、SpamAssassin的安裝 由于已經(jīng)安裝了AMaViS,所以自然就選擇了SpamAssassin。SpamAssassin可以通過CPAN安裝: # perl -MCPAN -e shell 2、SpamAssassin配置 創(chuàng)建/var/lib/amavis/.spamassassin/user_prefs文件: # SpamAssassin config file for version 2.5x # How many hits before a message is considered spam. # Whether to change the subject of suspected spam # Text to prepend to subject if rewrite_subject is used # Encapsulate spam in an attachment # Use terse version of the spam report # Enable the Bayes system # Enable Bayes auto-learning # Enable or disable network checks # Mail using languages used in these country codes will not be marked # Mail using locales used in these country codes will not be marked |
- qmail+vpopmail+sqwebmail的安裝步驟(1)
- 分布式的Qmail郵件系統(tǒng)(2)
- 以Procmail-Gateway過濾寄出信件病毒(2)
- QMAIL+MH設(shè)計方案(2)
- Webmail攻防實戰(zhàn)(8)
- 用WebEasyMail架構(gòu)Web郵件服務(wù)器(3)
- 分布式的Qmail郵件系統(tǒng)(1)
- 構(gòu)建反病毒反垃圾郵件系統(tǒng)(二)
- 配置你的第一臺e-mail服務(wù)器(4)
- Win2003自帶mail服務(wù)器配置詳細過程
- 用WebEasyMail架構(gòu)Web郵件服務(wù)器(4)
- 電子郵件系統(tǒng)收發(fā)不正常的常見原因
- 相關(guān)鏈接:
- 教程說明:
Mail服務(wù)器教程-構(gòu)建反病毒反垃圾郵件系統(tǒng)(六)。