本文記錄在 Red Hat 7.0 上安裝並設定 Sendmail、IMAP/POP3 以支援 Outlook、Foxmail 等客戶端收發信的完整流程。
mx1.abc.com)並有對應 A 記錄。nslookup -q=mx abc.com 驗證 MX 生效。rpm -ivh sendmail-cf-8.11.0-8.i386.rpm # 若 /etc/sendmail.cf 不存在
rpm -ivh imap-4.7c2-12.i386.rpm # 提供 ipop2/ipop3
| 檔案 | 設定內容 |
|---|---|
| /etc/sendmail.cf | Cwlocalhost abc mx1.abc.com |
| /etc/mail/access | 1.2.3.4 RELAY(允許本機 IP 轉信) |
| /etc/mail/local-host-names | abc.com(接收 @abc.com 信件) |
編輯 /etc/xinetd.d/ipop3、ipop2、pops,將 disable=yes 改為 no,重啟 xinetd。
useradd username
passwd username
chsh -s /bin/true username # 限制僅收信,無登入殼層
# 刪除:userdel username
username@abc.comusernamemx1.abc.com完成上述步驟,即可在 Windows 客戶端收發郵件。