ispCP - Board - Support
[HowTo] Replace courier with dovecot - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Replace courier with dovecot (/thread-1421.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: [HowTo] Replace courier with dovecot - bpratt - 02-01-2009 08:58 PM

just installed this dovecot, and having problems with it due to the instructions not being quite right with RC7.

The errors in my mail.err file is :-

Feb 1 20:54:33 admin dovecot: Internal error while decrypting password for username andywelding@yyyy.com from 202.47
Feb 1 20:54:33 admin dovecot: auth(default): checkpassword(andywelding@yyyy.com,202.47.118.136): Child 23902 exited


RE: [HowTo] Replace courier with dovecot - bpratt - 02-02-2009 09:32 AM

So does anyone know if there's an easy way to roll back from dovecot to courier ?

Was looking forward to using dovecot here, but if no one can help me out with this major issue I am having with it, I will have to roll back as this is a live install here.


RE: [HowTo] Replace courier with dovecot - aseques - 02-02-2009 06:41 PM

(02-02-2009 09:32 AM)bpratt Wrote:  So does anyone know if there's an easy way to roll back from dovecot to courier ?
No idea, never had any motivation to move back Tongue
(02-02-2009 09:32 AM)bpratt Wrote:  Was looking forward to using dovecot here, but if no one can help me out with this major issue I am having with it, I will have to roll back as this is a live install here.
Did you read the manual from here? http://isp-control.net/documentation/howto/mail/replace_courier_with_dovecot

Quote:NOTE: Somewhere in between rc6 and 1.0.0, password encryption was added, and so the passwords in clear text are no longer working. Here you can grap a perl script writen by sci2tech that handle the verification of the passwords for dovecot. http://www.isp-control.net/forum/showthread.php?tid=1421&pid=37295#pid37295 Copy it to /var/www/ispcp/engine/ispcp-dovecot-mngr and do a chmod 0755

If you're having problems still after following that guide, try enabling auth debugging and post the contents in this forum.


RE: [HowTo] Replace courier with dovecot - bpratt - 02-02-2009 07:09 PM

(02-02-2009 06:41 PM)aseques Wrote:  
(02-02-2009 09:32 AM)bpratt Wrote:  So does anyone know if there's an easy way to roll back from dovecot to courier ?
No idea, never had any motivation to move back Tongue
(02-02-2009 09:32 AM)bpratt Wrote:  Was looking forward to using dovecot here, but if no one can help me out with this major issue I am having with it, I will have to roll back as this is a live install here.
Did you read the manual from here? http://isp-control.net/documentation/howto/mail/replace_courier_with_dovecot

Quote:NOTE: Somewhere in between rc6 and 1.0.0, password encryption was added, and so the passwords in clear text are no longer working. Here you can grap a perl script writen by sci2tech that handle the verification of the passwords for dovecot. http://www.isp-control.net/forum/showthread.php?tid=1421&pid=37295#pid37295 Copy it to /var/www/ispcp/engine/ispcp-dovecot-mngr and do a chmod 0755

If you're having problems still after following that guide, try enabling auth debugging and post the contents in this forum.

Yep, done all that with the ispcp-dovecot-mngr.

Enabling auth debugging? exactly where do I need to turn on this debugging switch ?

I'd really like to get dovecot running though.


RE: [HowTo] Replace courier with dovecot - rbtux - 02-02-2009 07:15 PM

http://wiki.dovecot.org/Debugging/Authentication

I don't think you have taken a look there, did you?


RE: [HowTo] Replace courier with dovecot - bpratt - 02-02-2009 07:33 PM

(02-02-2009 07:15 PM)rbtux Wrote:  http://wiki.dovecot.org/Debugging/Authentication

I don't think you have taken a look there, did you?

Nope, not in there as I was hoping someone that had used dovecot with ispcp and had also come across the same problem as myself.

Thanks for the link, I'll look in to it and provide more information if I still can't work it out for myself. Smile


RE: [HowTo] Replace courier with dovecot - bpratt - 02-02-2009 10:26 PM

(02-02-2009 06:41 PM)aseques Wrote:  If you're having problems still after following that guide, try enabling auth debugging and post the contents in this forum.

Ok, done all that again, and here's the debug log. Sad

//MOD EDIT: SET CODE SYNTAX! -BeNe

Code:
Feb  2 21:50:23 admin dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=IMAP^Ilip=203.55.214.70^Irip=203.xx.xx.x
Feb  2 21:50:23 admin dovecot: auth(default): client out: CONT^I1^I
Feb  2 21:50:23 admin dovecot: auth(default): client in: CONT^I1^IAGJwcmF0dEBvaWguY29tLmF1AEVkd2FyZA==
Feb  2 21:50:23 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Executed: /var/www/ispcp/engine/ispcp-dovecot-mngr /usr/lib/dovecot/checkpassword-reply
Feb  2 21:50:24 admin dovecot: Internal error while decrypting password for username bpratt@zzz.com from 203.xx.xx.x for IMAP server
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Received no input
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): exit_status=111
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Child 22509 exited with status 111
Feb  2 21:50:24 admin dovecot: auth(default): client out: FAIL^I1^Iuser=bpratt@zzz.com^Itemp
Feb  2 21:50:24 admin dovecot: auth(default): client in: AUTH^I2^IPLAIN^Iservice=IMAP^Ilip=203.yy.yyy.yy^Irip=203.xx.xx.x^Iresp=AGJwcmF0d​EBvaWguY29tLmF1AEVk
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Executed: /var/www/ispcp/engine/ispcp-dovecot-mngr /usr/lib/dovecot/checkpassword-reply
Feb  2 21:50:24 admin dovecot: Internal error while decrypting password for username bpratt@zzz.com from 203.xx.xx.x for IMAP server
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Received no input
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): exit_status=111
Feb  2 21:50:24 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Child 22624 exited with status 111
Feb  2 21:50:26 admin dovecot: auth(default): client out: FAIL^I2^Iuser=bpratt@zzz.com^Itemp
Feb  2 21:50:30 admin dovecot: auth(default): client in: AUTH^I3^IPLAIN^Iservice=IMAP^Ilip=203.yy.yyy.yy^Irip=203.xx.xx.x
Feb  2 21:50:30 admin dovecot: auth(default): client out: CONT^I3^I
Feb  2 21:50:30 admin dovecot: auth(default): client in: CONT^I3^IAGJwcmF0dEBvaWguY29tLmF1AEVkd2FyZA==
Feb  2 21:50:30 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Executed: /var/www/ispcp/engine/ispcp-dovecot-mngr /usr/lib/dovecot/checkpassword-reply
Feb  2 21:50:30 admin dovecot: Internal error while decrypting password for username bpratt@zzz.com from 203.xx.xx.x for IMAP server
Feb  2 21:50:31 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Received no input
Feb  2 21:50:31 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): exit_status=111
Feb  2 21:50:31 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Child 23629 exited with status 111
Feb  2 21:50:32 admin dovecot: auth(default): client out: FAIL^I3^Iuser=bpratt@zzz.com^Itemp
Feb  2 21:50:32 admin dovecot: auth(default): client in: AUTH^I4^IPLAIN^Iservice=IMAP^Ilip=203.yy.yyy.yy^Irip=203.xx.xx.x^Iresp=AGJwcmF0d​EBvaWguY29tLmF1AEVk
Feb  2 21:50:32 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Executed: /var/www/ispcp/engine/ispcp-dovecot-mngr /usr/lib/dovecot/checkpassword-reply
Feb  2 21:50:32 admin dovecot: Internal error while decrypting password for username bpratt@zzz.com from 203.xx.xx.x for IMAP server
Feb  2 21:50:32 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Received no input
Feb  2 21:50:32 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): exit_status=111
Feb  2 21:50:32 admin dovecot: auth(default): checkpassword(bpratt@zzz.com,203.xx.xx.x): Child 23914 exited with status 111
Feb  2 21:50:34 admin dovecot: auth(default): client out: FAIL^I4^Iuser=bpratt@zzz.com^Itemp
Feb  2 21:50:35 admin dovecot: imap-login: Aborted login: user=<bpratt@zzz.com>, method=PLAIN, rip=203.xx.xx.x, lip=203.yy.yyy.yy



RE: [HowTo] Replace courier with dovecot - aseques - 02-05-2009 08:59 PM

It's really strange, I just did a fresh install, following all the steps in the wiki using a Debian etch 4.0.
Everything is working fine for me using 1.0.rc15-2etch4

This is what you should see:
Quote:Feb 5 10:51:39 t1000 dovecot: auth(default): checkpassword(testing@example.com,123.123.123.123): Executed: /var/www/ispcp/engine/ispcp-dovecot-mngr /usr/lib/dovecot/checkpassword-reply
Feb 5 10:51:39 t1000 dovecot: auth(default): checkpassword(testing@example.com,123.123.123.123): Received input: userdb_user=testing@example.com^Iuserdb_home=/var/mail/virtual/example.com/testing^Iuserdb_uid=1000^Iuserdb_gid=8^Iuserdb_mail=maildir:/var/mail/virtual/example.com/testing^I
Might it be that you have something that prevents the perl script to start (extra lines at the begin, something missing, ...)?
Can you try to copy/chmod the script again?


RE: [HowTo] Replace courier with dovecot - bpratt - 02-07-2009 12:15 PM

(02-05-2009 08:59 PM)aseques Wrote:  It's really strange, I just did a fresh install, following all the steps in the wiki using a Debian etch 4.0.
Everything is working fine for me using 1.0.rc15-2etch4


Might it be that you have something that prevents the perl script to start (extra lines at the begin, something missing, ...)?
Can you try to copy/chmod the script again?

Yep, have now done what you suggested, however it has made no difference whatsoever. Sad

Same old " dovecot: Internal error while decrypting password for username" is what it comes up with all the time.

Seems like the sql stuff is working, but can not seem to get around the decrypting the passwords. Sad


RE: [HowTo] Replace courier with dovecot - aseques - 02-10-2009 01:46 AM

Quote:Seems like the sql stuff is working, but can not seem to get around the decrypting the passwords. Sad
Have you tried to log all the mysql queries? If you add this line in /etc/mysql/my.cnf
log = /var/log/mysql/mysql.log

You'll have all the queries in the file. It's bad for the performance, but it might show you where the problem is ...

Good luck