Linux Sendmail邮件服务器认证、SSL配置示例
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-18
1. SMTP Authentication / Cyrus-SASL Configuration
1.2 Configure CYLUS-SASL to support SMTP Authentication |
Empire CMS,phome.net |
1.2.2 New /usr/lib/sasl2Sendmail.conf:
[root@host sasl2]# vi /usr/lib/sasl2/Sendmail.conf
Empire CMS,phome.net |
1.3 Restart SASL and Check installation
Start SASL with pam:
[root@host sbin]# service saslauthd stop
Stopping saslauthd: [ OK ]
[root@host sbin]# saslauthd -a shadow pam
Test installation:
[root@host sasl2]# cat /usr/lib/sasl2/Sendmail.conf
Empire CMS,phome.net
pwcheck_method:saslauthd
[root@host sasl2]# service saslauthd restart
Stopping saslauthd: [ OK ]
Starting saslauthd: [ OK ]
[root@host sasl2]# telnet mail.host.com 25
Trying 10.56.233.59...
Connected to mail.host.com (192.168.1.5).
Escape character is ''^]''.
220 host.com ESMTP Sendmail 8.13.8/8.13.8; Wed, 17 Mar 2010 23:12:20 0800
Empire CMS,phome.net
ehlo localhost
250-host.com Hello host [192.168.1.5], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
quit
Empire CMS,phome.net
221 2.0.0 host.com closing connection
Connection closed by foreign host.
[root@host sasl2]# sendmail -d0.1 -bv root | grep SASL
NETUNIX NEWDB <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
2. Configuration for SSl
2.1 vi /etc/pki/dovecot/dovecot-openssl.cnf
Empire CMS,phome.net
3 [ ] STREAM CONNECTED 55559933
unix 3 [ ] STREAM CONNECTED 55559932 /tmp/orbit-root/linc- 1846-0-c008ce5556ba
unix 3 [ ] STREAM CONNECTED 55559931
unix 3 [ ] STREAM CONNECTED 55556993
Empire CMS,phome.net |
2.1 vi /etc/pki/dovecot/dovecot-openssl.cnf
Empire CMS,phome.net
3 [ ] STREAM CONNECTED 55559933
unix 3 [ ] STREAM CONNECTED 55559932 /tmp/orbit-root/linc- 1846-0-c008ce5556ba
unix 3 [ ] STREAM CONNECTED 55559931
unix 3 [ ] STREAM CONNECTED 55556993
Empire CMS,phome.net |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
你可能对下面的文章感兴趣
关于Linux Sendmail邮件服务器认证、SSL配置示例的所有评论