I am using Postfix+Courier-IMAP+Cyrus-SASL+PAM_MySQL+MySQL
All are doing exactly what I need ,but sqwebmail display 
INVALID USER ID OR PASSWORD

I compiler sqwebmail with below option:
./configure --prefix=/usr/local/share/webmail 
--enable-imagedir=/usr/local/apache/htdocs/webmails --enable-imageurl=/webmails 
--enable-cgibindir=/usr/local/apache/cgi-bin/webmail3 --with-defaultlang=zh_CN 
--enable-mimecharset=gb2312 --with-mysql-libs=/usr/local/mysql/lib/mysql 
--with-mysql-includes=/usr/local/mysql/include/mysql --enable-unicode 
--with-cachedir=/var/webmail/cache --enable-webpass=no --without-ospell 
--enable-maxpurge=7 --without-authldap --without-authvchkpw --without-authshadow 
--with-fcgi --enable-https=auto --with-cacheowner=postfix --enable-mimetypes 


below is my config file


/usr/local/share/webmai/authdaemonrc :
authmodulelist="authmysql authpam"
#authmodulelistorig="authmysql"
daemons=5
version="authdaemond.mysql"
authdaemonvar=/usr/local/share/webmail/var/authdaemon


/usr/local/share/webmail/authmysqlrc :
MYSQL_SERVER            localhost
MYSQL_USERNAME          111
MYSQL_PASSWORD          222
MYSQL_SOCKET            /var/run/mysqld/mysqld.sock
MYSQL_PORT              3306
MYSQL_OPT               0
MYSQL_DATABASE          postfix
MYSQL_USER_TABLE        users

MYSQL_LOGIN_FIELD       email
MYSQL_CLEAR_PWFIELD     clear
MYSQL_UID_FIELD         uid
MYSQL_GID_FIELD         gid
MYSQL_HOME_FIELD        homedir
MYSQL_MAILDIR_FIELD     maildir

/etc/pam.d/webmail :
auth required /lib/security/pam_mysql.so host=localhost db=postfix user=111
passwd=222 table=users usercolumn=email passwdcolumn=clear crypt=n
account required /lib/security/pam_mysql.so host=localhost db=postfix user=111
passwd=222 table=users usercolumn=email passwdcolumn=clear crypt=n

can I set it anyway?








Reply via email to