Postfixで SSL通信

とりあえずメモ


wget https://jp.globalsign.com/repository/common/cer/rootcacert.cer
ln -s /usr/lib/sasl2 /usr/local/lib/sasl2
/etc/init.d/postfix reload
/etc/init.d/postfix restart

#relayhost = [an.ip.add.ress]
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_tls_CApath = /etc/postfix/cer

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_tls_security_options = noanonymous