Fedora Core 3 安裝時預設使用的 MTA (Mail Transfer Agent) 是 Sendmail

不過喜歡使用 Postfix 的大有人在,所以需要手動轉換系統.

 過程也很簡單,首先直接進行安裝 Postfix 的作業,先檢查是否已安裝可用 rpm -q postfix 確認,若是沒有安裝可使用自己喜好的套件安裝系統來安裝,可能如以下幾個方式:

  • yum install postfix
  • up2date postfix
  • apt-get install postfix

接著進行切換作業,檢查是否有以下檔案:

/usr/sbin/system-switch-mail

or

/usr/sbin/system-switch-mail-nox

如果沒有上列的檔案,就是代表 system-switch-mail 套件沒有安裝,請先進行安裝:

  • yum install system-switch-mail
  • up2date system-switch-mail
  • apt-get install system-switch-mail

當執行 system-switch-mail[-nox] 程式後,會見到選擇對話框,在本例就選擇 Postfix 確定,就完成切換。

再來就是要確認目前的 daemon 會啟動哪一個,在命令列模式下執行

chkconfig –list postfix

你應該會得到如下訊息:

postfix         0:關閉  1:關閉  2:開啟  3:開啟  4:開啟  5:開啟  6:關閉

再檢查 sendmail 狀況,執行下列命令:

chkconfig –list sendmail

應該會得到:

sendmail 服務支援 chkconfig,但未向任何執行等級註冊 (請執行 ‘chkconfig –add sendmail’)

這樣就完成轉換了。

 

以上資料來源,請至搜尋引擎查尋 SwitchingToPostfix 會有英文相關資料。