快速业务通道

Linux Sendmail邮件服务器认证、SSL配置示例

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-18

1. SMTP Authentication / Cyrus-SASL Configuration

1.1 Install CYLUS-SASL<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

1.2 Configure CYLUS-SASL to support SMTP Authentication

1.2.1 Configure /etc/mail/sendmail.mc to support SMTP authentication:
Empire CMS,phome.net
Uncomment this: TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN'')dnl define(`confAUTH_MECHANISMS'', ` GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN'')dnl ... DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA,M=Ea'')dnl

1.2.2 New /usr/lib/sasl2Sendmail.conf: [root@host sasl2]# vi /usr/lib/sasl2/Sendmail.conf
Empire CMS,phome.net
pwcheck_method:saslauthd

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

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号