On Mon, Aug 07, 2006 at 10:16:43AM -0400, Roberto C. Sanchez wrote:
> I am trying to authenticate imap users using authdaemon and postgresql.
> 

Thanks to Jay and Brian, I got the virtual user authentication working.
Now, on to the next problem.

Here is the log entry for the problem:

Aug  7 19:30:37 arecibo imaplogin: Connection, ip=[::ffff:127.0.0.1]
Aug  7 19:30:37 arecibo authdaemond.pgsql: received auth request,
service=imap,
authtype=login
Aug  7 19:30:37 arecibo authdaemond.pgsql: authpgsql: trying this module
Aug  7 19:30:37 arecibo authdaemond.pgsql: SQL query: SELECT email,
password, '', uid, gid, home, maildir, '', name, '' FROM composite WHERE
email = 'roberto'
Aug  7 19:30:37 arecibo authdaemond.pgsql: zero rows returned
Aug  7 19:30:37 arecibo authdaemond.pgsql: no password available to
compare
Aug  7 19:30:37 arecibo authdaemond.pgsql: authpgsql: REJECT - try next
module
Aug  7 19:30:37 arecibo authdaemond.pgsql: authpam: trying this module
Aug  7 19:30:37 arecibo authdaemond.pgsql: authpam: sysusername=roberto,
sysuserid=<null>, sysgroupid=1000, homedir=/home/roberto,
address=roberto, fullname=Roberto C. Sanchez,,,, maildir=<null>,
quota=<null>, options=<null>
Aug  7 19:30:37 arecibo authdaemond.pgsql: authpam: clearpasswd=<null>,
passwd=x
Aug  7 19:30:37 arecibo authdaemond.pgsql: pam_service=imap,
pam_username=roberto
Aug  7 19:30:37 arecibo authdaemond.pgsql: dopam successful
Aug  7 19:30:37 arecibo authdaemond.pgsql: authpam: ACCEPT, username
roberto
Aug  7 19:30:37 arecibo imaplogin: chdir Maildir: No such file or
directory

Now, in this case, roberto is my username and have a real account on the
system, not a virtual account.  So, the authpgsql attempt fails and it
falls back to authpam.  It clearly finds me and authenticates me.  The
problem, of course is that it can't find my maildir.  Now,
/home/roberto/.Maildir/ exists and is a proper maildir with mail in it.
I have also set MAILDIRPATH to .Maildir in /etc/courier/{imapd,pop3d}
and the ssl variants.  I am somewhat baffled by this.  Any pointers
would be appreciated.

Regards,

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to