默认postfix不支持加密,需要升级时添加加密支持
postfix升级加密更新:
查看postfix服务端的认证类型,未升级之前无显示
[root@server79 README_FILES]# postconf -a

查看postfix客户端的的认证类型,未升级之前无显示
[root@server79 README_FILES]# postconf -A

升级:
1.查看postfix-mysql的c语言头文件与库的位置
[root@server79 postfix-2.11.0]# rpm -ql mysql-devel
/usr/include/mysql
/usr/lib64/mysql/libmysqlclient.so
2.查看postfix-sasl认证的c语言头文件与库的位置
[root@server79 postfix-2.11.0]# rpm -ql  cyrus-sasl-devel
/usr/include/sasl
/usr/lib64/libsasl2.so
3.查看TLS加密的c语言头文件与库的位置
[root@server79 postfix-2.11.0]# rpm -ql openssl-devel | grep tls
/usr/include/openssl/tls1.h
[root@server79 postfix-2.11.0]# rpm -ql openssl-devel | grep 64
/usr/lib64/libssl.so

编译:
[root@server79 README_FILES]# less MYSQL_README //查看mysql的编译命令,注意要更改为与系统一致
[root@server79 README_FILES]# less SASL_README
改之前:make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl -DUSE_TLS -I/usr/local/include' 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm -L/usr/local/lib -R/usr/local/lib -lsasl2 -R/usr/local/lib -L/usr/local/lib -lssl -lcrypto'
改之后:make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS '     'AUXLIBS=-L/usr/lib64/mysql -lmysqlclient -lz -lm  -L/usr/lib64 -lsasl2  -lssl -lcrypto'

升级:
[root@server79 postfix-2.11.0]# make upgrade
[root@server79 postfix-2.11.0]# postconf -a
cyrus
dovecot
[root@server79 postfix-2.11.0]# postconf -A
cyrus