欧美黑人精品一区二区三区-蜜臀av午夜一区二区三区在线-被上司欺负的下属人妻-丰满少妇被猛烈进入白浆

始創(chuàng)于2000年 股票代碼:831685
咨詢(xún)熱線:0371-60135900 注冊(cè)有禮 登錄
  • 掛牌上市企業(yè)
  • 60秒人工響應(yīng)
  • 99.99%連通率
  • 7*24h人工
  • 故障100倍補(bǔ)償
全部產(chǎn)品
您的位置: 網(wǎng)站首頁(yè) > 幫助中心>文章內(nèi)容

構(gòu)建反病毒反垃圾郵件系統(tǒng)(六)

發(fā)布時(shí)間:  2012/8/14 13:47:34
 安裝四個(gè)下載的軟件包:

#dpkg-i*.deb

修改/etc/amavis/amavisd.conf:

以下為引用的內(nèi)容:
@inet_acl=qw(127/81.2.3.4/32);#1.2.3.4isyourexternalip..becausewantmaybealsoacceptmailfromthatin-terface,it'suptoyou.
$warnvirussender=1;#Iwanttowarnpeople,whohavegotvirus.
$warnvirusrecip=1;#Iwanttowarnmyusersaboutvirussendtothem.
$warn_offsite=1;#Iwanttowarnsenders/recipients,thatarenotlocatedonmyserver
$mailfrom_notify_admin='virusalert@example.com';#
$mailfrom_notify_recip='virusalert@example.com';#Changethesetotheappropriateemail-adresses,youwishtouseassender
$mailfrom_notify_spamadmin='spam.police@example.com';#forspamandviruswarnings
$hdrfrom_notify_sender='AMaViS(contentfilter)<postmaster@example.com>';
$virus_admin='virus-admin@example.com';#
$spam_admin='spam-admin@example.com';#

  
指定使用uvscan:

以下為引用的內(nèi)容:
@av_scanners=(

['NAIMcAfeeAntiVirus(uvscan)','uvscan',
'--secure-rv--summary--noboot{}',[0],[13],
qr/(?x)Found(?:
\the\(.+)\(?:virus|trojan)|
\(?:virus|trojan)\or\variant\([^]+)|
:\(.+)\NOT\a\virus)/],

);

  
找到/etc/postfix/master.cf如下行:

smtpinetn-n--smtpd

改為如下:

以下為引用的內(nèi)容:
smtpinetnnn--smtpd-ocontent_filter=smtp-amavis:[127.0.0.1]:10024
smtp-amavisunix--n-2smtp
-osmtp_data_done_timeout=1200
-odisable_dns_lookups=yes
127.0.0.1:10025inetn-n--smtpd
-olocal_recipient_maps=
-osmtpd_restriction_classes=
-osmtpd_client_restrictions=
-osmtpd_helo_restrictions=
-osmtpd_sender_restrictions=
-osmtpd_recipient_restrictions=permit_mynetworks,reject
-ostrict_rfc821_envelopes=yes

  
重啟postfix,這樣在收到病毒郵件的時(shí)候能夠在日志文件看到如下的信息:

以下為引用的內(nèi)容:
Jul1615:34:22xxxamavis[30997]:(30997-09)INFECTED(W32/Nimda.gen@MM),(?)-><xxx@xxx.org>,quarantinevirus-20030716-153422-30997-09,Message-ID:<20030716073414.520D3E5C2F@xxx>

  
三、防垃圾郵件部分

垃圾郵件的防范必須掌握好尺度,postfix本身提供了header_check、body_check、access、classes等方式來(lái)拒絕郵件,可以參考如下地址的樣例,結(jié)合自己的情況進(jìn)行修改也能阻止一部分垃圾郵件:

以下為引用的內(nèi)容:
http://www.XXXX.com/guides/postfix_uce_header.html
http://www.XXXX.com/guides/postfix_uce_body.html
http://www.XXXX.com/guides/postfix_uce_access.html
http://www.XXXX.com/guides/postfix_uce_class.html

  
不過(guò)以上配置文件需要管理員根據(jù)自己情況手工進(jìn)行修改,如果直接采用的話,那么國(guó)內(nèi)很多郵件你將收不到。

SpamAssassin和AMaViS可以很好的結(jié)合,它能夠幫管理員自動(dòng)處理一些垃圾郵件。SpamAssassin很有趣,它對(duì)解碼后的郵件進(jìn)行掃描后打分,如果分?jǐn)?shù)達(dá)到用戶(hù)指定的分?jǐn)?shù),那么就認(rèn)為是垃圾郵件,而且它還有學(xué)習(xí)功能,管理員也可以自己重新定義各種分值或自定義分值。

1、SpamAssassin的安裝

由于已經(jīng)安裝了AMaViS,所以自然就選擇了SpamAssassin。SpamAssassin可以通過(guò)CPAN安裝:

#perl-MCPAN-eshell

installMail::SpamAssassin

2、SpamAssassin配置

創(chuàng)建/var/lib/amavis/.spamassassin/user_prefs文件:

以下為引用的內(nèi)容:
#SpamAssassinconfigfileforversion2.5x
#generatedbyhttp://www.yrex.com/spam/spamconfig.php(version1.01)

#Howmanyhitsbeforeamessageisconsideredspam.
required_hits5.0

#Whethertochangethesubjectofsuspectedspam
rewrite_subject1

#Texttoprependtosubjectifrewrite_subjectisused
subject_tag*****SPAM*****

#Encapsulatespaminanattachment
report_safe1

#Useterseversionofthespamreport
use_terse_report0

#EnabletheBayessystem
use_bayes1

#EnableBayesauto-learning
auto_learn1

#Enableordisablenetworkchecks
skip_rbl_checks1
use_razor20
use_dcc0
use_pyzor0

#Mailusinglanguagesusedinthesecountrycodeswillnotbemarked
#asbeingpossiblyspaminaforeignlanguage.
#-chineseenglish
ok_languageszhen

#Mailusinglocalesusedinthesecountrycodeswillnotbemarked
#asbeingpossiblyspaminaforeignlanguage.
ok_localesenzh


本文出自:億恩科技【www.itdijia.com】

服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

  • 您可能在找
  • 億恩北京公司:
  • 經(jīng)營(yíng)性ICP/ISP證:京B2-20150015
  • 億恩鄭州公司:
  • 經(jīng)營(yíng)性ICP/ISP/IDC證:豫B1.B2-20060070
  • 億恩南昌公司:
  • 經(jīng)營(yíng)性ICP/ISP證:贛B2-20080012
  • 服務(wù)器/云主機(jī) 24小時(shí)售后服務(wù)電話:0371-60135900
  • 虛擬主機(jī)/智能建站 24小時(shí)售后服務(wù)電話:0371-60135900
  • 專(zhuān)注服務(wù)器托管17年
    掃掃關(guān)注-微信公眾號(hào)
    0371-60135900
    Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號(hào)總部企業(yè)基地億恩大廈  法律顧問(wèn):河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號(hào)
      0
     
     
     
     

    0371-60135900
    7*24小時(shí)客服服務(wù)熱線