Usermin - Read Mail - Failed to connect

Hello,

I am using:

OS: Debian 5.0 Lenny
Virualmin: 3.68 gpl
Usermin: 1.400

When I successfully login to Usermin (port :20000) and then Usermin -> Mail -> Read Mail I got an error “An error occurred listing mail in this folder : Failed to connect to localhost:143 : Connection refused” and it’s the same for every other account (root, admin domains, user domains).

When I’m using email with programs like Windows Mail (Vista), everything works fine (incoming/outcoming).

I’ve check /var/log/mail.log and /var/log/dovecot.log and there is nothing about that error, even no connection log when trying to connect by Usermin interface.

Well, normally I’d suggest making sure that Dovecot is running – but I suspect it will be if it works from other clients.

I’d be curious if anything at all shows up in /var/log/auth.log and /var/log/mail.log when you’re attempting to connect. It might have a completely different error than what you’re seeing in Usermin.

As a complete shot in the dark, it’s possible that “disable_plaintext_auth = no” needs to be set in your /etc/dovecot/dovecot.conf. If you try that, be sure to restart Dovecot afterwards.
-Eric

andreychek wrote:

Well, normally I'd suggest making sure that Dovecot is running -- but I suspect it will be if it works from other clients.
Dovecot is running.
I'd be curious if anything at all shows up in /var/log/auth.log and /var/log/mail.log when you're attempting to connect. It might have a completely different error than what you're seeing in Usermin.
There is nothing about that connection I'm trying to make through Usermin.
As a complete shot in the dark, it's possible that "disable_plaintext_auth = no" needs to be set in your /etc/dovecot/dovecot.conf. If you try that, be sure to restart Dovecot afterwards.
I did it, but the problem still remains.

OK, I solved problem just by turning on IAMP on dovecot.
At the beginning I configured dovecot to use only IAMP (SSL).

any info welcome

I had this same problem too. The problem is that imapproxy was not running after a server reboot (on CentOS).

# /etc/init.d/imapproxy restart
Shutting down up-imapproxy daemon:                         [FAILED]
Starting up-imapproxy daemon:                              [  OK  ]

Executing this command fixed it.

Same error. May have been following a restart.

Ubuntu does not have imapproxy but working from the above, I fixed it with:

paul@ws1:~$ sudo service dovecot restart
 * Restarting IMAP/POP3 mail server dovecot                              [ OK ] 
paul@ws1:~$ 

However i had migrated from a 10.04to 12.04 after the install of virtualmin, I am not sure if it was cause I didn’t reboot after the install. whippy’s remedy worked for me as well.

Thanks for the info.

However i had migrated from a 10.04 to 12.04 after the install of virtualmin, I am not sure if it was cause I didn’t reboot after the install. whippy’s remedy worked for me as well.

Thanks for the info.