Raffe
October 29th, 2005, 09:01 AM
Hi
I'm setting up Postfix and courier-pop servers. Got Postfix working but courier is giving me headaches. I'm stuck on the authentication. trying to make it use the /etc/courier/userdb.dat. Tried getting som usefull debug outputs and made syslog.conf produce a /var/log/mail.debug file for me.
In this file I get messages like
Oct 29 12:34:55 consoftix authdaemond.plain: modules="authuserdb authpam authcram", daemons=5
Oct 29 12:34:57 consoftix postfix/master[4258]: daemon started -- version 2.1.5
Oct 29 12:39:04 consoftix courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Oct 29 12:39:19 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=USER
Oct 29 12:39:26 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=PASS
Oct 29 12:39:26 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], username=mupp
Oct 29 12:39:26 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], password=mypwd
Oct 29 12:39:26 consoftix courierpop3login: authdaemon: starting client module
Oct 29 12:39:26 consoftix courierpop3login: authdaemon: REJECT
Oct 29 12:39:31 consoftix courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
Oct 29 12:39:32 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=QUIT
Oct 29 12:39:32 consoftix courierpop3login: LOGOUT, ip=[::ffff:127.0.0.1]
In /etc/courier/authdaemnonrc I have set:
authmodulelist="authuserdb authpam authcram"
And in /etc/courier/pop3d I have set:
DEBUG_LOGIN=2
in userdb I generated an encrypted password using "userdbpw -md5".
When testing it I use "telnet localhost 110". But I can't login to the pop server using USER and PASS.
It worries me that I cant se the authdaemon call authuserdb or any of the other modules. Have I missed some configuration here? or I'm I perhaps using the wrong password generation? How do one know which password encryption to use?
/Raffe
I'm setting up Postfix and courier-pop servers. Got Postfix working but courier is giving me headaches. I'm stuck on the authentication. trying to make it use the /etc/courier/userdb.dat. Tried getting som usefull debug outputs and made syslog.conf produce a /var/log/mail.debug file for me.
In this file I get messages like
Oct 29 12:34:55 consoftix authdaemond.plain: modules="authuserdb authpam authcram", daemons=5
Oct 29 12:34:57 consoftix postfix/master[4258]: daemon started -- version 2.1.5
Oct 29 12:39:04 consoftix courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Oct 29 12:39:19 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=USER
Oct 29 12:39:26 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=PASS
Oct 29 12:39:26 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], username=mupp
Oct 29 12:39:26 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], password=mypwd
Oct 29 12:39:26 consoftix courierpop3login: authdaemon: starting client module
Oct 29 12:39:26 consoftix courierpop3login: authdaemon: REJECT
Oct 29 12:39:31 consoftix courierpop3login: LOGIN FAILED, ip=[::ffff:127.0.0.1]
Oct 29 12:39:32 consoftix courierpop3login: LOGIN: DEBUG: ip=[::ffff:127.0.0.1], command=QUIT
Oct 29 12:39:32 consoftix courierpop3login: LOGOUT, ip=[::ffff:127.0.0.1]
In /etc/courier/authdaemnonrc I have set:
authmodulelist="authuserdb authpam authcram"
And in /etc/courier/pop3d I have set:
DEBUG_LOGIN=2
in userdb I generated an encrypted password using "userdbpw -md5".
When testing it I use "telnet localhost 110". But I can't login to the pop server using USER and PASS.
It worries me that I cant se the authdaemon call authuserdb or any of the other modules. Have I missed some configuration here? or I'm I perhaps using the wrong password generation? How do one know which password encryption to use?
/Raffe