25 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Can't log in via ...
FromSent OnAttachments
James HomuthMar 26, 2007 2:56 am 
Bernd WurstMar 26, 2007 3:52 am 
Bernd WurstMar 26, 2007 3:54 am 
James HomuthMar 26, 2007 3:57 am 
Bernd WurstMar 26, 2007 4:02 am 
James HomuthMar 26, 2007 5:08 am 
Gordon MessmerMar 26, 2007 8:25 am 
James HomuthMar 26, 2007 8:48 am 
Gordon MessmerMar 26, 2007 9:34 am 
James HomuthMar 26, 2007 5:51 pm 
Gordon MessmerMar 26, 2007 9:57 pm 
Bernd WurstMar 26, 2007 10:35 pm 
James HomuthMar 27, 2007 3:19 am 
Gordon MessmerMar 27, 2007 6:46 am 
James HomuthMar 27, 2007 8:52 am 
Bernd WurstMar 27, 2007 10:29 am 
James HomuthMar 28, 2007 3:39 pm 
Bernd WurstMar 28, 2007 10:42 pm 
James HomuthMar 31, 2007 4:21 am 
James HomuthMar 31, 2007 4:25 am 
Bernd WurstMar 31, 2007 6:54 am 
James HomuthMar 31, 2007 7:32 am 
Bernd WurstMar 31, 2007 7:42 am 
James HomuthMar 31, 2007 9:05 am 
James HomuthMar 31, 2007 9:12 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Can't log in via courier-pop3Actions...
From:Bernd Wurst (ber@bwurst.org)
Date:Mar 28, 2007 10:42:00 pm
List:net.sourceforge.lists.courier-users

Hi.

Thank you for the config, it differs from what you posted before!

Am Donnerstag, 29. März 2007 schrieb James Homuth:

MYSQL_HOME_FIELD        /home/vmail/$(domain)/$(local_part)/

As I wrote before, this can never work as this is a FIELD(-name) here and not a value. So it's passed to mysql without being quoted. This confuses mysql.

I didn't try for myself but your SQL log shows that authdaemon either does *NOT* substiture variables in these field statements but only in a custom MYSQL_SELECT_CLAUSE or that authdaemon substitutes variables only in a quoted string.

Please try two things:

1. Simply quote you home field: MYSQL_HOME_FIELD '/home/vmail/$(domain)/$(local_part)/'

if this does not work (I didn't try), I would recommand this:

2. Build a new MYSQL_SELECT_CLAUSE upon the Query authdaemon issues at the moment with proper quotations.

Try this

MYSQL_SELECT_CLAUSE SELECT email, password, '', 5000, 5000, \ '/home/vmail/$(domain)/$(local_part)/', '', '', '', '' \ FROM users WHERE email = '$(local_part)@$(domain)'

I wonder why the AUXOPTIONS-Field is not evaluated. I left it out because I think you can debug that if the other things are running.

An important note for debugging: run the mysql command line interpreter with the same login credentials as used in authmysqlrc and run the mysql query from the logfile in it when you encounter errors. MySQL will tell you what's wrong or give you the same results that authdaemon gets and you'll propably see what's wrong.

cu, Bernd