星期日, 10月 04, 2009

Sendmail TLS support @ CentOS 5.3

話說同事再測試SENDMAIL架設的郵件伺服器時,想說利用GMAIL測試!
當他再設定時,SMTP那邊會出現 Remote server does not support TLS

先大概紀錄一下網路上爬到的方法,有機會再來好好研究
(通常都不知道會是那時候了,呵)


#cd /etc/pki/tls/certs
#make sendmail.pem
#cp -a sendmail.pem ../private/
#cd /etc/mail
#vi sendmail.mc

define(`confAUTH_OPTIONS', `A p')

define(`confCACERT_PATH', `/etc/pki/tls/certs')
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')

#m4 sendmail.mc > sendmail.cf
#service sendmail restart



參考來源:
http://sial.org/howto/sendmail/tls-relay/
Sendmail-SMTP-AUTH-TLS-Howto
製作 Sendmail / Postfix, Dovecot, Apache HTTP Server 安全憑證
sendmail進階設定

沒有留言: