自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Postfix的安裝與啟動(dòng)

運(yùn)維 系統(tǒng)運(yùn)維
在Linux系統(tǒng)下,sendmail是默認(rèn)的郵件服務(wù),但是同時(shí)也無(wú)可避免地會(huì)有一些缺陷。如何安裝postfix呢?首先應(yīng)該卸載sendmail的進(jìn)程,繼而啟動(dòng)postfix程序。

postfix安裝啟動(dòng)過(guò)程:

  1、殺掉所有Sendmail進(jìn)程

  #killall sendmail (停止所有的Sendmaail進(jìn)程)

  sendmail: no process killed

  # rpm -ivh postfix-2.2.5-3.rhel4.i386.rpm

  2、啟動(dòng)dovecot服務(wù)過(guò)程:

  # service postfix start

  Starting postfix: [ 確定 ]

  # service dovecot start

  啟動(dòng) Dovecot Imap: [ 確定 ]

  現(xiàn)在可以使用郵件服務(wù)器發(fā)送郵件了,但是還不能下載郵件,因?yàn)樾掳鎟edhat Linux中 dovecot代替了imap軟件包,但是還沒(méi)有綁定POP3和POP協(xié)議,下面修改配置文件: /etc/dovecot.conf,

  #protocols = imap imap3

  protocols = imap imap3 pop3 pop3s

  auth_passdb =

  更改為:

  auth_passdb = shadow

  然后重新啟動(dòng)dovecot服務(wù):

  # service dovecot restart

  停止 Dovecot Imap: [ 確定 ]

  啟動(dòng) Dovecot Imap: [ 確定 ]

  3、修改postfix郵件服務(wù)器配置文件:

  #myhostname = host.domain.tld

  更改為:

  myhostname = mail.cao.net

  #mydomain = domain.tld

  更改為:

  mydomain = cao.net

  #myorigin = $mydomain

  更改為:

  Myorigin = cao.net

  #inet_interfaces = all

  更改為:

  Inet_interfaces =all

  #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain

  更改為:

  mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain,

  ftp.$mydomain

  #mynetworks = host

  更改為:

  mynetworks = host

  4、端口測(cè)試:

  # telnet mail.cao.net 25 (測(cè)試25端口)

  Trying 127.0.0.1...

  Connected to localhost.localdomain (127.0.0.1).

  Escape character is '^]'.

  220 mail.cao.net ESMTP Postfix

  quit

  221 Bye

  Connection closed by foreign host.

  # telnet mail.cao.net 110 (測(cè)試110端口)

  Trying 127.0.0.1...

  Connected to localhost.localdomain (127.0.0.1).

  Escape character is '^]'.

  +OK dovecot ready.

  quit

  +OK Logging out

  Connection closed by foreign host.

#p#

  5、安裝防范病毒軟件

  F-Prot Antivirus軟件包安裝和配置過(guò)程:

  Wegt http://files.f-prot.com/files/linux-x86/fp-linux-ws.rpm

  安裝F-Prot Antivirus軟件包前,請(qǐng)先啟動(dòng)SpamAssassin服務(wù)器:

  Matt Sergeant、Craig Hughes和Justin Mason于發(fā)布的SpamAssassin(SA)。目前***版本是3.0.2,它是較為流行的反垃圾郵件軟件,據(jù)SpamAssassin供應(yīng)商 Deersoft的統(tǒng)計(jì),目前大約有3萬(wàn)臺(tái)Unix服務(wù)器上使用了SpamAssassin。SpamAssassin利用Perl語(yǔ)言來(lái)對(duì)郵件內(nèi)容進(jìn)行規(guī)則匹配,從而達(dá)到判斷過(guò)濾垃圾郵件的目的。它的判斷方式是基于評(píng)分的方式,也就是說(shuō)如果這封郵件符合某條規(guī)則,則給與一定分值;當(dāng)累計(jì)的分值超過(guò)了一定限度時(shí),則判定該郵件為垃圾郵件。對(duì)Sendmail、Qmail、Postfix和Exim等各種郵件平臺(tái)都適用。SpamAssassin的安裝過(guò)程比較簡(jiǎn)單。

  # service spamassassin start (啟動(dòng)SpamAssassin服務(wù)器)

  Starting spamd: [ 確定 ]

  # rpm -ivh fp-linux-ws.rpm (安裝F-Prot Antivirus軟件包)

  升級(jí)的F-Prot Antivirus病毒庫(kù)的操作:

  # cd /usr/local/f-prot/tools/

  # ./check-updates.pl (升級(jí)命令)

  ***************************************

  * F-Prot Antivirus Updater *

  ***************************************

  Nothing to be done...

  MailScanner軟件包安裝和配置過(guò)程:

  Wegt http://www.sng.ecs.soton.ac.uk/mailscanner/downloads.shtml

  # mv MailScanner-4.50.5-1.rpm.tar.gz /tmp/source/ (移動(dòng)文件到/tmp/source/目錄中)

  # cd /tmp/source/ (進(jìn)入source目錄中)

  # tar -zxvf MailScanner-4.50.5-1.rpm.tar.gz (MailScanner解壓過(guò)程)

  # cd MailScanner-4.50.5-1 (進(jìn)入MailScanner軟件解壓目錄)

  # ./install.sh (執(zhí)行MailScanner軟件的安裝命令)

  更改incoming、quarantine兩個(gè)目錄相關(guān)用戶(hù)和組的使用權(quán)限:

  # chown postfix.postfix /var/spool/MailScanner/incoming

  # chown postfix.postfix /var/spool/MailScanner/quarantine

  修改/etc/MailScanner/目錄下的MailScanner.conf文件,修改詳細(xì)內(nèi)容以下:

  詳細(xì)內(nèi)容:

  Run As User =

  Run As Group =

  更改為:

  Run As User = postfix

  Run As Group = postfix

  Incoming Queue Dir = /var/spool/mqueue.in

  Outgoing Queue Dir = /var/spool/mqueue

  更改為:

  Incoming Queue Dir = /var/spool/postfix/hold

  Outgoing Queue Dir = /var/spool/postfix/incoming

  MTA = sendmail

  更改為:

  MTA = postfix

  Virus Scanners = none

  更改為:

  Virus Scanners = f-prot

  Always Include SpamAssassin Report = no

  更改為:

  Always Include SpamAssassin Report = yes

  Use SpamAssassin = no

  更改為:

  Use SpamAssassin = yes

  Required SpamAssassin Score = 6

  更改為:

  Required SpamAssassin Score = 4

  SpamAssassin User State Dir =

  更改為:

  SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

  SpamAssassin Install Prefix =

  更改為:

  SpamAssassin Install Prefix = /usr/bin

  SpamAssassin Local Rules Dir =

  更改為:

  SpamAssassin Local Rules Dir = /etc/MailScanner

  修改/etc/postfix/目錄下的header_checks文件,新增加以下一行內(nèi)容到文件中,詳細(xì)內(nèi)容如下:

  /^Received:/ HOLD

  修改/etc/postfix/目錄下的main.conf文件,詳細(xì)內(nèi)容如下:

  #header_checks = regexp:/etc/postfix/header_checks

  更改為:

  header_checks = regexp:/etc/postfix/header_checks

  停止Postfix服務(wù)器,因?yàn)閱?dòng)MailScanner服務(wù)時(shí)會(huì)自動(dòng)啟動(dòng)Postfix服務(wù)器:

  啟動(dòng)MailScanner服務(wù)器和設(shè)置開(kāi)機(jī)時(shí)自動(dòng)啟動(dòng):

  # service MailScanner start

  Starting MailScanner daemons:

  incoming postfix: [ 確定 ]

  outgoing postfix: [ 確定 ]

  MailScanner: [ 確定 ]

  # chkconfig --level 33 MailScanner on

#p#

  6、病毒檢測(cè)測(cè)試:

  從網(wǎng)站(http://www.eicar.org/anti_virus_test_file.htm)下載一個(gè)測(cè)試病毒文件:eicar.com。編寫(xiě)一封測(cè)試郵件(附件中帶上的eicar.com文件)。系統(tǒng)檢測(cè)到郵件病毒,見(jiàn)圖1。

  

 

Postfix/安裝/啟動(dòng)

  圖1 病毒檢測(cè)界面

  查看maillog日志,請(qǐng)確認(rèn)日志中是否存在以下相近的信息:

  詳細(xì)內(nèi)容:

  Jan 8 12:11:08 mail MailScanner[9199]: Virus Scanning: F-Prot found virus EICAR_Test_File

  Jan 8 12:11:08 mail MailScanner[9199]: Virus Scanning: F-Prot found 1 infections

  Jan 8 12:11:08 mail MailScanner[9199]: Infected message E73EE13C07C.07685 came from

  Jan 8 12:11:08 mail MailScanner[9199]: Virus Scanning: Found 1 viruses

  Jan 8 12:11:09 mail MailScanner[9199]: Requeue: A9D6413C085.39DDE to 6414713C089

  Jan 8 12:11:09 mail MailScanner[9199]: Uninfected: Delivered 1 messages

  如出現(xiàn)以上的日志信息就代表您的F-Prot Antivirus + MailScanner-4.31.6-1架設(shè)已經(jīng)成功啦,

  7、如果希望郵件服務(wù)器每次啟動(dòng)都能自動(dòng)運(yùn)行,可以用服務(wù)設(shè)置功能。以root權(quán)限運(yùn)行命令:

  #redhat-config-services

  

 

Postfix/安裝/啟動(dòng)

  圖2 郵件服務(wù)器自動(dòng)啟動(dòng)

  打開(kāi)如圖2所示的窗口,在dovecot服務(wù)選項(xiàng)加上勾,然后重新啟動(dòng)系統(tǒng),這樣系統(tǒng)會(huì)啟動(dòng)郵件服務(wù)。

【編輯推薦】

  1. Postfix對(duì)郵件的處理流程
  2. Linux下的郵件服務(wù)器 postfix
  3. 如何安裝Postfix
  4. Postfix郵件安裝實(shí)現(xiàn)介紹
  5. Postfix入門(mén)篇
  6. postfix 安裝配置
  7. Postfix的配置

 

 

責(zé)任編輯:zhaolei 來(lái)源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2011-01-18 15:00:17

Postfix安裝

2011-01-18 14:47:22

Postfix

2010-06-02 17:36:31

postfix概述

2010-01-14 12:15:10

CentOS post

2010-06-02 18:17:09

Postfix郵件

2010-06-07 11:22:28

2011-02-21 14:12:15

Postfix服務(wù)器安裝

2011-01-20 10:08:25

postfix安裝

2010-05-25 18:57:42

啟動(dòng)postfix

2010-06-09 18:08:52

Postfix郵件

2011-02-21 09:26:43

Postfixpopimap

2011-02-21 13:08:37

postfix配置

2011-01-19 09:16:48

Postfix配置

2011-01-18 18:52:14

Postfix結(jié)構(gòu)

2011-01-19 09:55:27

postfix

2011-02-21 11:14:47

Postfix配置

2011-01-19 09:57:48

Postfix控制

2011-01-19 13:39:38

Postfix郵件監(jiān)控

2010-05-25 14:57:17

postfix安裝配置

2010-06-17 16:08:51

Grub2 編輯
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)