Hello
I compiled courier-authlib-0.58 using:
./configure --with-mysql-includes=/usr/local/include/mysql/ --with-authmysql
--with-authmysql=yes
cat /usr/local/etc/authlib/authdaemonrc
authmodulelist="authmysql authpam"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=0
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""
-bash-2.05b# cat /usr/local/etc/authlib/authmysqlrc
MYSQL_SERVER 127.0.0.1
MYSQL_USERNAME vmailuser
MYSQL_PASSWORD password123
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE postfix_users
MYSQL_CRYPT_PWFIELD crypt
MYSQL_CLEAR_PWFIELD clear
MYSQL_UID_FIELD uid
MYSQL_GID_FIELD gid
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD homedir
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quota
MYSQL_AUXOPTIONS_FIELD
CONCAT("disableimap=",disableimap,",disablepop3=",disablepop3,",disablewebmail=",disablewebmail,",sharedgroup=",sharedgroup)
MYSQL_WHERE_CLAUSE access='y'
I launched it:
-bash-2.05b# authdaemond start
I also launched courier pop3
but when i try:
-bash-2.05b# telnet 0 110
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
+OK Hello there.
user test
+OK Password required.
pass testpassword
-ERR Temporary problem, please try again later
Connection closed by foreign host.
and in logs:
Sep 28 15:12:51 server pop3d: LOGIN FAILED, user=test, ip=[127.0.0.1]
Sep 28 15:12:51 server pop3d: authentication error: Input/output error
Why ?
Database works fine. What's wrong ?
Thanx