1 / 8

smtp : sendmail

smtp : sendmail. 安裝 win7 telnet.exe (test 用 ). 控制台 > 程式集 > 開啟或關閉 Windows 功能 > 勾 Telnet 用戶端. 安裝 sendmail. rpm - qa | grep sendmail yum -y install sendmail sendmail-cf chkconfig --list sendmail ( 預設開機啟動 ). 設定 sendmail.cf, 讓 sendmail 可以給外部連線. 修改前 win7 telnet

ash
Download Presentation

smtp : sendmail

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. smtp: sendmail

  2. 安裝 win7 telnet.exe (test用) • 控制台 > 程式集 > 開啟或關閉Windows功能> 勾 Telnet用戶端

  3. 安裝sendmail • rpm -qa | grepsendmail • yum -y install sendmailsendmail-cf • chkconfig --list sendmail • (預設開機啟動)

  4. 設定 sendmail.cf,讓sendmail可以給外部連線 • 修改前 win7 telnet • telnet dns.qlapita.com 25 不能連 • 正連線到 dns.qlapita.com...無法開啟到主機的連線, 在連接埠 25: 連線失敗 • vim /etc/mail/sendmail.cf • Search Addr=127.0.0.1 > 預設 127.0.0.1 無法給外部連線, 改為 Addr=0.0.0.0 • 重跑 sendmail, if fail, restart again • win7 test: telnet dns.qlapita.com 25 220 dns.qlapita.com ESMTP Sendmail 8.14.4/8.14.4; Mon, 28 Oct 2013 11:06:28 +0800

  5. 設定 sendmail正確 permission, 才可以正確的對外部發信,否則會 relaying denied • # vim /etc/mail/access增加:Connect:10.10.88.* RELAYConnect:120.125.144.* RELAYConnect:120.125.145.* RELAY自己視情況加,若要全部開放,請加:Connect:*.* RELAY • 注意,網段最後一碼是*,不是0 • 最後要透過上述新設定內容,製作新的 access.db檔,給sendmail讀取: • makemap hash /etc/mail/access.db < /etc/mail/access

  6. 設定user@dns.lapita.com&user@lapita.com都可以收發email設定user@dns.lapita.com&user@lapita.com都可以收發email • 目前,只有user@dns.lapita.com可以收發 email,若要讓user@lapita.com也可以收發 email,請修改: • vim /etc/mail/local-host-names加下面兩行:qlapita.comdns.qlapita.com • service sendmail restart

  7. Win7 outlook 設定aa@qlapita.com & bb@qlapita.com • aa@qlapita.com • 寄一封email給自己 & bb@qlapita.com • aa & bb都要收到信, 如下

  8. aa@qlapita.com寄給 santana@csie.ncu.edu.tw • 等一會後,會收到系統回信 • 伺服器錯誤: '550 5.7.1 <santana@csie.ncu.edu.tw>... Relaying denied. • 未合法申請 domain,無法寄到外面的email! • reboot • 開始安裝&設定 openwebmail

More Related