码迷,mamicode.com
首页 > 其他好文 > 详细

centos7安装配置sendmail

时间:2015-12-29 11:13:34      阅读:3591      评论:0      收藏:0      [点我收藏+]

标签:sendmail

yum install sendmail sendmail-cf

# vi /etc/mail/sendmail.mc

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN‘)dnl

define(`confAUTH_MECHANISMS‘, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN‘)dnl

DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA‘)dnl

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

systemctl start sendmail.server



yum install sendmail sendmail-cf

yum install dovecot cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain cyrus-sasl-lib

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN‘)dnl

define(`confAUTH_MECHANISMS‘, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN‘)dnl

define(`confAUTH_OPTIONS‘, `A p‘)dnl

define(`confCACERT_PATH‘, `/etc/pki/tls/certs‘)dnl

define(`confCACERT‘, `/etc/pki/tls/certs/ca-bundle.crt‘)dnl

define(`confSERVER_CERT‘, `/etc/pki/tls/certs/sendmail.pem‘)dnl

define(`confSERVER_KEY‘, `/etc/pki/tls/certs/sendmail.pem‘)dnl

DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA‘)dnl


centos7安装配置sendmail

标签:sendmail

原文地址:http://guowang327.blog.51cto.com/6513732/1729403

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!