2 messages in net.sourceforge.lists.courier-users[courier-users] userdb
FromSent OnAttachments
Wolfgang JeltschNov 28, 2004 3:50 pm 
Sam VarshavchikNov 28, 2004 5:04 pm 
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:[courier-users] userdbActions...
From:Wolfgang Jeltsch (wolf@jeltsch.net)
Date:Nov 28, 2004 3:50:41 pm
List:net.sourceforge.lists.courier-users

Hello,

I use Courier 0.37.3 and want to use userdb.

I created a file /etc/courier/userdb and entered a line like the following into it:

user@virtualdomain mail=/home/me/Maildir|uid=1000|gid=1000|systempw=...

where 1000 shall be the uid and gid of UNIX user "me". As the value of "systempw" I used the output of userdbpw. After having created userdb, I ran makeuserdb.

In /etc/courier/authdaemonrc I changed the line

authmodulelist="authpam"

to

authmodulelist="authuserdb"

and restarted authdaemon.

Now when trying to access courier-imap with KMail (of KDE 2.2), KMail asks me for a user name and password again and again. So obviously the username and password are not accepted. Is there any obvious explanation for this behavior?

Also I'd like to know why userdbpw generates different output for the same password during different runs.

And what about using account names of the form user@virtualdomain in userdb? The manpage of makeuserdb seems to recommend this. But /etc/courier/userdb is also used by the Courier MTA in deciding if a given e-mail address is valid and where the destination mailbox is located. If I'd have an account name "hello" in userdb, the MTA would accept mails to hel@realdomain.com. Now, if I'd have an account name "user@virtualdomain" in userdb, would this mean that the MTA would accept mail to user@virt@realdomain.com?

Thanks for your answers.

Best wishes, Wolfgang