Chinaunix首页 | 论坛 | 博客
  • 博客访问: 857899
  • 博文数量: 254
  • 博客积分: 5350
  • 博客等级: 大校
  • 技术积分: 2045
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-27 13:27
文章分类

全部博文(254)

文章存档

2015年(1)

2014年(9)

2013年(17)

2012年(30)

2011年(150)

2010年(17)

2009年(28)

2008年(2)

分类: LINUX

2011-03-18 15:46:09

                        authdaemon s_connect() failed:

收邮件遇到错误。
/var/log/maillog中有如下错误:
temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied maildrop: Temporary authentication failure.
 
(编译 courier-authlib 必须要加入--with-mailuser,--with-mailgroup 这两项;否则在 postfix 收取邮件的时候就会出现错误,在 /var/log/maillog 日志文件中可以看到这个错误提示:
temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied maildrop: Temporary authentication failure. )
(如果是用 RPM 安装的话,就必须敲这条命令 chmod 755 /usr/local/courier-authlib/var/spool/authdaemon
该目录权限不正确修改,maildrop及postfix等将无法正确获取用户的信息及密码认证。)
重新编译加上--with-mailuser,--with-mailgroup 可是却总是卡住。提示
Cannot obtain information for groupid vgroupl: Success
明明我在参数中是指定的--with-mailgrop=vgroup啊
google找遍了也无解,于是建立一个vgroupl的group吧
#groupadd vgroupl
然后编辑/etc/group把vgroup的gid改为1000,然后再编译courier-authlib
神啊,这次过了,编译好了以后配置好authdaemonrc和authmysqlrc后
执行
/usr/local/courier-authlib/sbin/authtest -s login test
Authentication succeeded.
     Authenticated:   (uid 1000, gid 1000)
    Home Directory: /home/domains/gehoo.cn/coolerfeng
           Maildir: /home/domains/gehoo.cn/coolerfeng/Maildir/
             Quota: 5242880S
Encrypted Password: $1$2uVRWdsL$EkmXH6u5hFKGJ7vN.EjNW.
Cleartext Password: test
ok了
然后删除掉刚才那个vgroupl也没有影响
阅读(4806) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~