Hi, I did a few things that helped me out when setting things up. In the $sysconfdir/pop3d file I set the debug value to 2. DEBUG_LOGIN=2 In the $sysconfdir/imapd file I also set debug value to 2. DEBUG_LOGIN=2
Typically, if you are using mysql to store user names, the username to be authenticated would be in the form of [EMAIL PROTECTED] You could alter the $home and $maildir to point to a virtual users location or even point it to the system's users home, IE /home/someone. If I login using the sqwebmail and enter just a name that exists in my /etc/passwd file; such as, alan and then provide the password that corresponds, the authorizing will check which ever module is first listed in authdaemonrc and go onto the next if fails. So for me, if I login into sqwebmail as just alan it will get verified by authpam and succeed. If I login in as [EMAIL PROTECTED] it will succeed via authmysql. If you wish the system users to associated to a particular domain, so that if you send an Email to [EMAIL PROTECTED] it goes to the /home/someone maildir then you can add the something.com domain to the locals file. It seems if the domain is in the locals file the @something.com is striped off when courier does the proceesing and authentication. So [EMAIL PROTECTED] changes to systemuser and then authpam checks if systemuser exists in /etc/passwd and verifies the password and uses it's /home/dir to route the mail. So, I add my special domain to my 'locals' file for system users. I hope this makes sense and is somewhat correct. I am still trying to learn about this software. One more thing. I added more logging to the mysql database so that I could see the queries being passed to it when trying to get login to Courier. /etc/my.cnf [mysqld] ... ... ... log=/var/log/mysqlquery.log log-bin To make the mysqlquery.log file work you need to... touch /var/log/mysqlquery.log chown mysql.mysql /var/log/mysqlquery.log chmod 640 /var/log/mysqlquery.log I like to type my thoughts out to help me better understand things. Sorry for the long email. Alan Ingham ---------- Original Message ---------------------------------- From: "Ricardo Kleemann" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Fri, 12 Dec 2003 09:18:11 -0800 > >Thanks Joris. > >> >> Afaik authdaemond.plain is just a stripped down version. >> authdaemond.mysql has all it's functionality, plus the >> mysql stuff. So you just need to run authdaemond.mysql. >> >> You probably want to edit the authdaemonrc (in >> etc/courier/), and put something like >> authmodulelist="authpam authmysql" in there. > >I did try that... but for some reason authentication for >system users still failed. There's really no debug >information that I can look at to understand why. > >Ricardo > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >courier-users mailing list >[EMAIL PROTECTED] >Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users > ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
