Welcome to 2003 :)
I updated to version:
tank:~# dpkg -l|grep cour ii courier-authda 0.42.2-7 Courier Mail Server - Authentication daemon
and the following authmysqlrc:
# be used to do a SELECT operation on database, which should return fields # in order specified bellow: # # username, cryptpw, clearpw, uid, gid, home, maildir, quota, fullname
MYSQL_SELECT_CLAUSE SELECT id, crypt, passwd, uid, gid, home, '', quota_size, '' from user where id = '$(local_part)'
I believe the field 'username' must contain the domain also ([EMAIL PROTECTED]). I have a debate with Mr. Sam some time ago about this but I can't remember the details.
BTW, why are you using MYSQL_SELECT_CLAUSE? The example you mentioned above can be implemented without MYSQL_SELECT_CLAUSE. Take a look at MYSQL_UID_FIELD, MYSQL_GID_FIELD and so inside authmysqlrc.
I mentioned a difference in the order of the parameters from 0.37. to 0.42.The order mentioned in 0.42 is the correct one.
I tried with both combinations, it just won't work !!Need more input. Suggestions:
Change the DEBUG_LOGIN option in pop3d (and/or imapd) config file from
DEBUG_LOGIN=0
to
DEBUG_LOGIN=1
Take a look at /var/log/maillog (or similar for your system).
Turn on mySQL's General Query Log starting it with |--log[=file] or including log[=file] in your my.cnf.
This log will have all queries sent to the server.
I bet that looking at both logs you will find the problem yourself but you can also send us some pieces of them. Easier to help knowing what's happening ;)|
Rodrigo, could you please post your authmysqlrc?
Here is my MYSQL_SELECT_CLAUSE but it's overly complicated. I am not sure it will really help you (I'm working on making it simplier, and some fields have portuguese names but I bet they are understandable):
MYSQL_SELECT_CLAUSE SELECT CONCAT(passwd.id, '@', alias_dominio.alias_dominio), \ passwd.senha_criptografada, \ '', \ dominio_virtual.uid, \ dominio_virtual.gid, \ passwd.caminho, \ '', \ passwd.cota, \ passwd.nome \ FROM passwd INNER JOIN dominio_virtual USING (cod_dominio_virtual) \ INNER JOIN alias_dominio USING (cod_dominio_virtual) \ WHERE (alias_dominio.alias_dominio = '$(domain)') \ AND (passwd.id = '$(local_part)') \ AND (passwd.ativo = 'sim') \ AND (dominio_virtual.ativo = 'sim') \ AND (alias_dominio.ativo = 'sim')
Luck,
Rodrigo Severo
-- ---------------------------------------------------- Rodrigo Severo F�brica de Id�ias Fone: +55(61)321 1357 Fax: +55(61)223 1712 SBS - Quadra 2 - Ed. Empire Center - Sala 1301 Bras�lia/DF - Brasil CEP: 70.070-904 ----------------------------------------------------
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
