Hello,

I have two courier servers that should act like a cluster.
In each imapd config I put the other one as proxy server and addet the
right options to the mysql query,
I can log in with the users that have the mailhost entry to the remote
machine, when I try to login with a
User that has his maihost on the local one, the following output
floods the mailllog file and at the end the login failed.



.....
Feb  7 16:40:51 backend-B1 authdaemond: Authenticated:
sysusername=<null>, sysuserid=5000, sysgroup id=5000,
homedir=/home/vmail, [EMAIL PROTECTED], fullname=<null>,
maildir=test.local/horst/,quota=10485760, options=mailhost=backend-B1
Feb  7 16:40:51 backend-B1 authdaemond: Authenticated:
clearpasswd=horst, passwd=Xnh.QbpWVbaeU
Feb  7 16:40:51 backend-B1 imapd: Connection, ip=[::ffff:172.20.2.101]
Feb  7 16:40:51 backend-B1 imapd: 30 maximum active connections.
Feb  7 16:40:51 backend-B1 authdaemond: received auth request,
service=imap, authtype=login
Feb  7 16:40:51 backend-B1 authdaemond: authmysql: trying this module
Feb  7 16:40:51 backend-B1 authdaemond: SQL query: SELECT email,
password, "", 5000, 5000, "/home/v mail",
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'),
quota, "", CONCAT("mailhost=",mailhost) FROM users WHERE email =
"[EMAIL PROTECTED]"
Feb  7 16:40:51 backend-B1 authdaemond: password matches successfully
Feb  7 16:40:51 backend-B1 authdaemond: authmysql: sysusername=<null>,
sysuserid=5000, sysgroupid=5000, homedir=/home/vmail,
[EMAIL PROTECTED], fullname=<null>, maildir=test.local/horst/,
quota=10485760, options=mailhost=backend-B1
Feb  7 16:40:51 backend-B1 authdaemond: authmysql: clearpasswd=<null>,
passwd=Xnh.QbpWVbaeU
Feb  7 16:40:51 backend-B1 authdaemond: Authenticated:
sysusername=<null>, sysuserid=5000, sysgroup id=5000,
homedir=/home/vmail, [EMAIL PROTECTED], fullname=<null>,
maildir=test.local/horst/, quota=10485760, options=mailhost=backend-B1
Feb  7 16:40:51 backend-B1 authdaemond: Authenticated:
clearpasswd=horst, passwd=Xnh.QbpWVbaeU
Feb  7 16:41:21 backend-B1 imapd: LOGIN FAILED, [EMAIL PROTECTED],
ip=[::ffff:23.23.32.32]
Feb  7 16:41:21 backend-B1 imapd: LOGIN FAILED, [EMAIL PROTECTED],
ip=[::ffff:172.20.2.101]
Feb  7 16:41:21 backend-B1 last message repeated 28 times


Also when I sent a email to a user that should be on the other
machine, courier creates a folder on the local one.

All the login stuff works, also the selection of the host as we can see above.

I cloned one existing server to the second and changed the hostname
everywhere, I systemwide grep didn't gave me the old hostname where it
shouldn't be.
I disabled all the firewall and selinux stuff.
Should I see something in the logs about the connection to the other
host? Didn't until now…


Thx a lot

Heiko

Some stuff from the configs:

IMAP_PROXY=1
PROXY_HOSTNAME=backend-A1

IMAP_PROXY=1
PROXY_HOSTNAME=backend-B1


MYSQL_SERVER localhost
MYSQL_USERNAME mail_admin
MYSQL_PASSWORD mail_admin_password
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_MAILDIR_FIELD maildir
# CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
#MYSQL_NAME_FIELD
MYSQL_QUOTA_FIELD quota
MYSQL_AUXOPTIONS_FIELD CONCAT("mailhost=",mailhost)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to