免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1986 | 回复: 4
打印 上一主题 下一主题

[Mail] postfix的smtp认证不了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-12 10:51 |只看该作者 |倒序浏览
系统是rhel as4安装的cyrus-sasl-2.1.19-5.EL4和postfix-2.4.0-1.rhel4

在/etc/postfix/main.cf最后添加了
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ' '
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
     reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous

在/usr/lib/sasl2/smtpd.conf添加
pwcheck_method: saslauthd

使用testsaslauthd -u user -p 'passwd'测试成功

但使用telnet localhost 25后使用ehlo localhost不显示250-AUTH PLAIN LOGIN

在客户机OE中无法开户身份验证,是什么问题?谢谢.

[ 本帖最后由 orrinchen 于 2007-11-12 10:52 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-11-13 13:59 |只看该作者
看我博客里smtp+saslauthd的部分, 比你的设置简单

论坛徽章:
0
3 [报告]
发表于 2007-11-15 14:19 |只看该作者
多谢,我看了你的Postfix+LDAP+SMTP Auth的文章,由于我没用ldap,我只根据你的第三项设置了一下,好象还是不行
ehlo mail.home.com
250-mail.home.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

论坛徽章:
0
4 [报告]
发表于 2007-11-15 15:12 |只看该作者
1是一定要做
2看你用什么, 如果是mysql, 那就要设置成mysql的参数
3每篇文章都有介绍
其实1/2才是saslauthd的关键

论坛徽章:
0
5 [报告]
发表于 2007-11-15 15:20 |只看该作者
permit_sasl_authenticated是告诉postfix用saslauthd来作验证

/etc/sysconfig/saslauthd的MECH是告诉saslauthd用什么数据库来验证, CONFIG_FILE="/etc/saslauthd.conf"是说连接去数据库是用什么配置文件

/etc/saslauthd.conf里我因为是LDAP, 所以设置LDAP的连接方法, 这个要根据你的实际设置做更改
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP