- 论坛徽章:
- 0
|
10可用积分
从postfixadmin上用邮件帐户登陆是可以的,但是从客户端怎么就不行了呢
- RedHat Enterprise Linux Server 4.2 + Postfix + PostfixAdmin + MySQL + Cyrus-sasl + Courier-authlib + Dovecot
复制代码
已经使用postfixadmin 建立了 alan@yahoo.lt 的 用户和邮箱,OUTLOOK客户端 使用用户名alan@yahoo.lt ,输入密码后无法登陆.
查看maillog记录
- Sep 26 21:17:00 mail postfix/smtpd[15526]: connect from unknown[192.168.77.11]
- Sep 26 21:17:00 mail authdaemond: received auth request, service=smtp, authtype=login
- Sep 26 21:17:00 mail authdaemond: authmysql: trying this module
- Sep 26 21:17:00 mail authdaemond: SQL query: SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
- Sep 26 21:17:00 mail authdaemond: supplied password does not match encrypted password
- Sep 26 21:17:00 mail authdaemond: authmysql: REJECT - try next module
- Sep 26 21:17:00 mail authdaemond: FAIL, all modules rejected
- Sep 26 21:17:00 mail postfix/smtpd[15526]: warning: unknown[192.168.77.11]: SASL LOGIN authentication failed
- Sep 26 21:17:00 mail postfix/smtpd[15526]: lost connection after AUTH from unknown[192.168.77.11]
- Sep 26 21:17:00 mail postfix/smtpd[15526]: disconnect from unknown[192.168.77.11]
复制代码
OUTLOOK客户端 使用用户名alan@yahoo.lt ,输入密码后无法登陆.
同时mysql收到命令
- SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
- SELECT password FROM mailbox WHERE username = 'alan@yahoo.lt'
复制代码
使用此命令在mysql上可以查到
- mysql> SELECT username, password, "", '102', '104', concat('/home/mailbox/',maildir), concat('/home/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "alan@yahoo.lt"
- -> ;
- +---------------+----------+--+-----+-----+----------------------------------+----------------------------------+--+------+--+
- | username | password | | 102 | 104 | concat('/home/mailbox/',maildir) | concat('/home/mailbox/',maildir) | | name | |
- +---------------+----------+--+-----+-----+----------------------------------+----------------------------------+--+------+--+
- | [email]alan@yahoo.lt[/email] | alan | | 102 | 104 | /home/mailbox/yahoo.lt/alan/ | /home/mailbox/yahoo.lt/alan/ | | | |
- +---------------+----------+--+-----+-----+----------------------------------+----------------------------------+--+------+--+
- 1 row in set (0.00 sec)
- mysql> SELECT password FROM mailbox WHERE username = 'alan@yahoo.lt';
- +----------+
- | password |
- +----------+
- | alan |
- +----------+
- 1 row in set (0.00 sec)
复制代码
[ 本帖最后由 very_99 于 2007-9-27 18:56 编辑 ] |
最佳答案
查看完整内容
呵呵,祝贺你!原因应该是courier-authlib考虑到安全问题,强制认证时用户的UID大于500。
|