看板 Linux 關於我們 聯絡資訊
公司有台伺服器裝了CentOS(6.8) + Webmin(1.831) 作為網頁伺服器和郵件伺服器使用 主機上不知為何Postfix和Sendmail(8.1.1.4)都有裝 但實際在收信的是Sendmail,Postfix沒啟動 最近在處理SMTP驗證的部分,雖然有成功達成寄信驗證與寄出 但在驗證開啟後就無法接收來自外部的郵件 實測用Gmail寄進來會退回 Delivery Status Notification (Failure) 遠端伺服器的回應如下: 530 5.7.0 Authentication required 這樣的回應 而只要拿掉SMTP驗證要求的設定,就能夠正常接收 因為沒有設驗證就可以收,所以防火牆應該沒問題 但目前找了許多篇設定SMTP驗證的文章,都沒有特別提到外部郵件寄進來會受影響的事 請問有可能是會是什麼原因造成的? 感謝各位 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.134.18.8 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1533814725.A.39A.html ※ 編輯: Peruheru (220.134.18.8), 08/09/2018 19:39:37
kenduest: 若只是用 webmin 這類現成的工具是很難知道設定什麼 08/10 00:37
感謝回應 http://www.sendmail.org/~ca/email/auth.html#authrequire 我以為要開啟這個才能有驗證功能,結果就是開啟後外面郵件會因為無法驗證寄不進來 網站也提示說 Requiring SMTP AUTH for all mails is in general a bad idea, because then you cannot receive mails from other users (since the cannot authenticate). So you must do this only on a server that is solely intended for your own users to send mail, not for a publically advertised (via MX records) server. 於是就先關閉auth require選項再來做 https://staff.ie.cuhk.edu.hk/~sfluk/wordpress/?p=3139 依照這個網站的步驟重跑過一次設定以後 現在已經能夠針對外寄郵件出現驗證要求,也能收的到內外部郵件 只剩內部寄信不會要求驗證這點要解決 猜是因為 /etc/mail/access 的設定導致 我再研究看看,感謝各位 ※ 編輯: Peruheru (220.134.18.8), 08/10/2018 11:04:56
cliff3122: /etc/mail/access 可以加上公司的IP,避免被隨意realy 08/28 11:41
cliff3122: 請參考 http://s2.naes.tn.edu.tw/~kv/sendmail.html 08/28 11:42