- 论坛徽章:
- 0
|
我在文件/etc/authdaemonrc中启用了调试,日志文件/var/log/maillog如下:
Oct 15 18:23:18 mail pop3d: Connection, ip=[192.168.1.10]
Oct 15 18:23:18 mail authdaemond: received auth request, service=pop3, authtype=login
Oct 15 18:23:18 mail authdaemond: authmysql: trying this module
Oct 15 18:23:18 mail authdaemond: SQL query: SELECT username, password, "", '1000', '1000', concat('/var/mailbox/',maildir), concat('/var/mailbox/',maildir), "", name, "" FROM mailbox WHERE username = "ypxns_98"
Oct 15 18:23:18 mail authdaemond: zero rows returned
Oct 15 18:23:18 mail authdaemond: no password available to compare
Oct 15 18:23:18 mail authdaemond: authmysql: REJECT - try next module
Oct 15 18:23:18 mail authdaemond: FAIL, all modules rejected
Oct 15 18:23:18 mail pop3d: LOGIN FAILED, user=ypxns_98, ip=[192.168.1.10]
Oct1518:23:23mailpop3d isconnected,ip=[192.168.1.10]……………………………………………..
从提示的信息来看,说mysql中没有可以对比的密码,难道是我的数据库中没有存储用户密码吗??我查看了一下Mysql,其结果如下所示:用户密码是存在的!
mysql> select * from mailbox;
+-------------------+----------+------------------------------------+----------+------+----------+----------------------------+-------------------+----------+--------------+----------+-----------+-----------+---------------------+---------------------+--------+------------------+--------------+-------------+----------------+----------------+-------------+-------------+
| username | uid | password | clearpwd | name | mailhost | maildir | homedir | quota | netdiskquota | domain | uidnumber | gidnumber | createdate | expiredate | active | disablepwdchange | disablesmtpd | disablesmtp | disablewebmail | disablenetdisk | disableimap | disablepop3 |
+-------------------+----------+------------------------------------+----------+------+----------+----------------------------+-------------------+----------+--------------+----------+-----------+-----------+---------------------+---------------------+--------+------------------+--------------+-------------+----------------+----------------+-------------+-------------+
| ypxns_98@test.com | ypxns_98 | $1$6N6Xoc8p$SWfYUchlpANM3g0lFLdA10 | | yp | | test.com/ypxns_98/Maildir/ | test.com/ypxns_98 | 5242880S | 5242880S | test.com | 1000 | 1000 | 2007-10-13 22:15:13 | 2008-10-12 22:14:42 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| pp@test.com | pp | $1$eBeLYmGD$OLZHGHKtjyP677JxqT/oj1 | | pp | | test.com/pp/Maildir/ | test.com/pp | 5242880S | 5242880S | test.com | 1000 | 1000 | 2007-10-13 15:50:02 | 2008-10-12 15:49:49 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
+-------------------+----------+------------------------------------+----------+------+----------+----------------------------+-------------------+----------+--------------+----------+-----------+-----------+---------------------+---------------------+--------+------------------+--------------+-------------+----------------+----------------+-------------+-------------+
2 rows in set (0.03 sec)
当我用authtest的时候,日志和上面一样
[root@mail sbin]# ./authtest -s pop3 ypxns_98 123456
Authentication FAILED: Operation not permitted
[root@mail sbin]#
另外我 问一 下,关于那个校验码,我rpm安装perl-gd的时候,提示需要libgd.so.2,但是这个在/usr/lib/和/usr/local/lib/下都存在,可是 好像仍然找不到!!!!所以后来我就把它给注释掉了!!!
[ 本帖最后由 ypxns 于 2007-10-17 21:05 编辑 ] |
|