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也没有影响
阅读(4858) | 评论(0) | 转发(0) |