配置
1、授权码:
在邮箱设置里面开启授权码授权。
2、启动postfix
1.1 启动postfix
#sendmial
service sendmail stop
chkconfig sendmail off
#postfix
service postfix start
chkconfig postfix on
如果postfix start失败
[root@rzdatahadoop002 ~]# postfix check
postfix: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
[root@rzdatahadoop002 ~]# rpm -qa|grep mysql
[root@rzdatahadoop002 ~]# yum install mysql-libs
创建认证
mkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.163.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/163.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i