Quote:
Originally Posted by falko
Can you post your authmysqlrc?
|
Sure!
Here it is...
MYSQL_SERVER localhost
MYSQL_USERNAME mail_admin
MYSQL_PASSWORD xxxxxxxx
MYSQL_PORT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
#MYSQL_CLEAR_PWFIELD password
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD "/home/vmail"
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
MYSQL_NAME_FIELD name
MYSQL_QUOTA_FIELD quota
I also turned DEBUG_LOGIN=2 in /etc/authlib/authdaemonrc
to watch mail log for reading "name" field from table.
Here some of it, hope it would help
Sep 16 00:03:18 mail authdaemond: received auth request, service=smtp, authtype=login
Sep 16 00:03:18 mail authdaemond: authmysql: trying this module
Sep 16 00:03:18 mail authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/home/vmail", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), quota, name, "" FROM users WHERE email = 'vvedischev@domain.ru'
Sep 16 00:03:18 mail authdaemond: password matches successfully
Sep 16 00:03:18 mail authdaemond: authmysql: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=vvedischev@domain.ru, fullname=Vedischev V.N., maildir=domain.ru/vvedischev/, quota=209715200, options=<null>
Sep 16 00:03:18 mail authdaemond: authmysql: clearpasswd=<null>, passwd=BAcr3ni.MG.eY
Sep 16 00:03:18 mail authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/home/vmail, address=vvedischev@domain.ru, fullname=Vedischev V.N., maildir=domain.ru/vvedischev/, quota=209715200, options=<null>
Sep 16 00:03:18 mail authdaemond: Authenticated: clearpasswd=xxxxxxxx, passwd=BAcr3ni.MG.eY
here we can see fullname takes exact meaning of name field from user table.
But sender's/recipient's name goes e-mail anyway.
Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 day 11 hours ago
1 day 13 hours ago
2 days 3 hours ago
2 days 3 hours ago
2 days 8 hours ago
2 days 15 hours ago
2 days 15 hours ago
2 days 17 hours ago