CentOS 6 1. 移除sendmail 安裝postfix
2. Gmail username and password Simple Authentication and Security Layer (SASL)
3. Postfix 設定 vim /etc/postfix/main.cf
CApath here, not CAfile 4. 重新啟動Postfix
5. Google 安全性設定 https://myaccount.google.com/security 「我的帳戶」> 「低安全性應用程式」專區 > 「安全性較低的應用程式存取權限」旁邊的 [啟用] 6. 測試mail server 是否有正常寄信 寄信俾自己
後記: Goolge 可能係最近才有這個安全性設定,大多數reference 都沒有提及,搞到我白忙一場。 不同Linux distro, CA file name 有分別。