安裝 Mail Server 程序

1 安裝基本郵件系統元件

CentOS 4.x 內之預設版本:

  • sendmail-8.13.1-3.2.el4
  • dovecot-0.99.11-8.EL4
  • cyrus-sasl-2.1.19-14
  • cyrus-sasl-devel-2.1.19-14
  • cyrus-sasl-plain-2.1.19-14
  • cyrus-sasl-md5-2.1.19-14
  • perl-5.8.5-36.RHEL4
  • spamassassin-3.1.9-1.el4

詳細安裝程序

1.1 cyrus-sasl

cyrus-sasl 設定程序

1.2 sendmail

sendmail 設定程序

加入接受的 Domain Name

編輯信任 IP 定義

編輯 Aliases 定義

  • 與 sendmail 相關設定全部定義好後重新啟動 sendmail
service sendmail restart

確認是否設定正確 smtp 寄信具有身份認證功能簡單檢測方式:

1.3 dovecot

dovecot 設定程序

2 安裝防毒過濾系統 f-port / clamav

2.1 安裝 f-port

詳細安裝程序

安裝後會自動更新病毒定義檔, 目前安裝的版本為 : fp-linux-ws-4.6.8-1

2.2 安裝 clamav

詳細安裝程序

安裝前要先建立 clamav 的帳號與群組, 如果 zlib 版本低於 1.2.2 則需要加上 –disable-zlib-vcheck 參數

3 安裝 MailScanner

詳細安裝程序

3.1 設定 MailScanner 定義檔

  • 新安裝編輯 /etc/MailScanner/MailScanner.conf

vi /etc/MailScanner/MailScanner.conf

  • 升級的自動調整設定方式

upgrade_MailScanner_conf

3.2 設定 sendmail 與 MailScanner 啟動方式

  • 設定 sendmail 啟動方式
service sendmail stop
chkconfig sendmail off
chkconfig --level 2345 sendmail off
  • 設定 MailScanner 啟動方式
chkconfig MailScanner on
chkconfig --level 2345 MailScanner on
service MailScanner start
 
回到頁頂
tech/install_mail.txt · 上一次變更: 2008/09/28 18:43 來自 jonathan
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0