免费注册 查看新帖 |

Chinaunix

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

[Mail] 大家帮我看下什么问题,SMTP认证不通过! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-24 18:13 |只看该作者 |正序浏览
#telnet localhost 25               
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.extmail.org ESMTP postfix - by extmail.org
ehlo demo.domain.tld
250-mail.extmail.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
cG9zdG1hc3RlckBleHRtYWlsLm9yZw==
334 UGFzc3dvcmQ6
ZXh0bWFpbA==
535 5.7.8 Error: authentication failed: generic failure      出现这个错误......



以下是maillog:

Sep 24 18:03:57 extmail postfix/postfix-script[4503]: starting the Postfix mail system
Sep 24 18:03:57 extmail postfix/master[4504]: daemon started -- version 2.5.1, configuration /etc/postfix
Sep 24 18:04:05 extmail postfix/smtpd[4510]: connect from extmail[127.0.0.1]
Sep 24 18:05:05 extmail postfix/smtpd[4510]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied
Sep 24 18:05:05 extmail postfix/smtpd[4510]: warning: extmail[127.0.0.1]: SASL login authentication failed: generic failure
Sep 24 18:05:17 extmail postfix/smtpd[4510]: disconnect from extmail[127.0.0.1]
Sep 24 18:09:41 extmail postfix/smtpd[4518]: connect from extmail[127.0.0.1]
Sep 24 18:10:27 extmail postfix/smtpd[4518]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied
Sep 24 18:10:27 extmail postfix/smtpd[4518]: warning: extmail[127.0.0.1]: SASL login authentication failed: generic failure
Sep 24 18:10:31 extmail postfix/smtpd[4518]: disconnect from extmail[127.0.0.1]

找了很多帖子都找不到解决办法!大家帮忙看看!3Q3Q!!

论坛徽章:
0
13 [报告]
发表于 2012-04-19 14:17 |只看该作者
我也遇到这个问题啊,请问是什么文件的权限设置关系啊

论坛徽章:
0
12 [报告]
发表于 2011-09-13 17:49 |只看该作者
呵呵 搞定了 是权限问题 但不是+X 是更改了文件所属用户和组 不知道为什么默认是root.root的! 后来把 ...
yico1984 发表于 2008-09-25 14:18



    谢谢lz,我也是卡在这里2,3天。终于可以释放一下心中的郁闷了!

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
11 [报告]
发表于 2008-09-26 10:50 |只看该作者
/usr/lib/sasl2/smtpd.conf

这个权限也看下

论坛徽章:
0
10 [报告]
发表于 2008-09-25 14:21 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
9 [报告]
发表于 2008-09-25 14:18 |只看该作者
原帖由 scyzxp 于 2008-9-25 13:07 发表

你的错误信息就是指这个目录的权限不对,如果没有其它的问题应该chmod +x就可以了,你再检查一下



呵呵 搞定了 是权限问题 但不是+X 是更改了文件所属用户和组 不知道为什么默认是root.root的! 后来把有关进程重启一下 再把authdaemon下的文件权限改成 daemon.daemon 就可以了 !

还是谢谢大家帮忙! 呵呵!

论坛徽章:
0
8 [报告]
发表于 2008-09-25 13:07 |只看该作者
原帖由 yico1984 于 2008-9-25 11:57 发表



-rwxr-xr-x  1 root root 5 Sep 24 14:15 pid
-rwxr-xr-x  1 root root 0 Sep 24 14:15 pid.lock
srwxr-xr-x  1 root root 0 Sep 24 14:15 socket

还是不行的......

你的错误信息就是指这个目录的权限不对,如果没有其它的问题应该chmod +x就可以了,你再检查一下

论坛徽章:
0
7 [报告]
发表于 2008-09-25 11:59 |只看该作者
原帖由 ruochen 于 2008-9-25 08:26 发表
sasl部分是怎么配置的?




Postfix的SMTP认证需要透过Cyrus-SASL,连接到authdaemon获取认证信息,编辑/etc/postfix/main.cf,增加如下内容:

# smtpd related config
smtpd_recipient_restrictions =
    permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unauth_destination,
        reject_unauth_pipelining,
        reject_invalid_hostname,

# SMTP AUTH config here
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous

其次用vi编辑/usr/lib/sasl2/smtpd.conf,确保其内容为:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket

存盘退出后,重新启动postfix:

是ExtMail的官方文档

论坛徽章:
0
6 [报告]
发表于 2008-09-25 11:57 |只看该作者
原帖由 scyzxp 于 2008-9-25 11:30 发表



很简单的
chmod +x authdamond_path/



-rwxr-xr-x  1 root root 5 Sep 24 14:15 pid
-rwxr-xr-x  1 root root 0 Sep 24 14:15 pid.lock
srwxr-xr-x  1 root root 0 Sep 24 14:15 socket

还是不行的......

论坛徽章:
0
5 [报告]
发表于 2008-09-25 11:30 |只看该作者
原帖由 yico1984 于 2008-9-24 18:13 发表
#telnet localhost 25               
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.extmail.org ESMTP postfix - by extmail.org
ehlo de ...



很简单的
chmod +x authdamond_path/
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP