Dovecot: Failed to connect to localhost:143

That message about “no passdbs specified” looks like the cause of the problem.

You may need to go to Webmin -> Servers -> Dovecot IMAP Server -> User and Login Options , and set “Password authentication source” to something valid like “Default PAM service”. Then restart the Dovecot server.

After saving it’s gives me this error:
Failed to save user and login options : Failed to find section auth default !

It seems like your Dovecot config is in a strange state. You may need to un-install Dovecot, purge its config files, and then re-install.

root@host:~# apt-get remove --purge dovecot
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘dovecot’ is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So…

root@host:~# ps auxw | grep dovecot
root 11305 0.0 0.0 21648 1072 ? Ss May25 0:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
dovecot 11306 0.0 0.0 13044 1040 ? S May25 0:00 dovecot/anvil
root 11307 0.0 0.0 13172 1292 ? S May25 0:00 dovecot/log
root 24070 0.0 0.0 7832 880 pts/0 S+ 20:05 0:00 grep dovecot

There’s a few Dovecot related packages… you’d want to purge any that you have installed, and then also make sure you have the IMAP related ones reinstalled once that’s completed.

What is the output of this command:

dpkg -l 'dovecot*'

I have to remove all these packages?

http://imm.io/18b3g

Well, as Jamie mentioned, you need to completely purge Dovecot, and reinstall it, as there’s something wrong with the config.

However, as seen in the image you attached, there isn’t a package named “dovecot”.

You don’t need to reinstall all the packages in the image you attached, just the ones that are installed (packages with ‘ii’ in front of them are installed).

-Eric

Done…

there is something wrong though …
I have not seen virtualmin http://imm.io/18bVl

What output do you see if you run this command:

dpkg -l 'webmin-virtual-server*'

dpkg-query: no packages found matching webmin-virtual-server*

Hmm, how did you perform your Virtualmin installation? Did you use the install.sh script?

You don’t seem to have the Virtualmin and Virtualmin theme packages installed on your server.

-Eric

Virtualmin was installed before i just delete dovecot.
I had installed Virtualmin with the install.sh script, yes.

Did dpkg/apt prompt you about removing other packages, in addition to Dovecot?

If so, and those were removed too, that would explain the issue you’re seeing now.

If packages other than just Dovecot were removed, those would need to be reinstalled.

You can review the dpkg log, /var/log/dpkg.log, to see what all had been removed.

-Eric

Excluding dovecot:

2013-06-03 23:56:09 startup packages purge 2013-06-03 23:56:37 startup packages purge 2013-06-03 23:56:37 status installed virtualmin-base:all 1.0-29 2013-06-03 23:56:37 remove virtualmin-base:all 1.0-29 2013-06-03 23:56:37 status half-configured virtualmin-base:all 1.0-29 2013-06-03 23:56:37 status half-installed virtualmin-base:all 1.0-29 2013-06-03 23:56:37 status config-files virtualmin-base:all 1.0-29 2013-06-03 23:56:37 status config-files virtualmin-base:all 1.0-29 2013-06-03 23:56:38 status config-files virtualmin-base:all 1.0-29 2013-06-03 23:56:38 status not-installed virtualmin-base:all 2013-06-03 23:56:46 trigproc man-db:amd64 2.6.2-1 2013-06-03 23:56:46 status half-configured man-db:amd64 2.6.2-1 2013-06-03 23:56:48 status installed man-db:amd64 2.6.2-1 2013-06-03 23:57:53 startup packages remove 2013-06-03 23:57:53 status installed usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:53 remove usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:53 status half-configured usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:56 status half-installed usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:56 status config-files usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:56 status config-files usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:57 status config-files usermin-virtual-server-theme:all 6.8 2013-06-03 23:57:57 status not-installed usermin-virtual-server-theme:all 2013-06-03 23:57:57 status installed webmin-security-updates:all 4.4 2013-06-03 23:57:57 remove webmin-security-updates:all 4.4 2013-06-03 23:57:57 status half-configured webmin-security-updates:all 4.4 2013-06-03 23:57:57 status half-installed webmin-security-updates:all 4.4 2013-06-03 23:57:57 status config-files webmin-security-updates:all 4.4 2013-06-03 23:57:57 status config-files webmin-security-updates:all 4.4 2013-06-03 23:57:57 status config-files webmin-security-updates:all 4.4 2013-06-03 23:57:57 status not-installed webmin-security-updates:all 2013-06-03 23:57:57 status installed webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:57 remove webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:57 status half-configured webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:58 status half-installed webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:58 status config-files webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:58 status config-files webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:58 status config-files webmin-virtualmin-awstats:all 4.9 2013-06-03 23:57:58 status not-installed webmin-virtualmin-awstats:all 2013-06-03 23:57:58 status installed webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:58 remove webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:58 status half-configured webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:58 status half-installed webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:58 status config-files webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:58 status config-files webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:59 status config-files webmin-virtualmin-htpasswd:all 2.6 2013-06-03 23:57:59 status not-installed webmin-virtualmin-htpasswd:all 2013-06-03 23:57:59 status installed webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 remove webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 status half-configured webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 status half-installed webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 status config-files webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 status config-files webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 status config-files webmin-virtualmin-dav:all 3.6 2013-06-03 23:57:59 status not-installed webmin-virtualmin-dav:all 2013-06-03 23:58:00 status installed webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 remove webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 status half-configured webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 status half-installed webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 status config-files webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 status config-files webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 status config-files webmin-virtualmin-svn:all 5.0 2013-06-03 23:58:00 status not-installed webmin-virtualmin-svn:all 2013-06-03 23:58:00 status installed webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:00 remove webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:00 status half-configured webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:00 status half-installed webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:01 status config-files webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:01 status config-files webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:01 status config-files webmin-virtualmin-mailman:all 6.2 2013-06-03 23:58:01 status not-installed webmin-virtualmin-mailman:all 2013-06-03 23:58:01 status installed webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:01 remove webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:01 status half-configured webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:01 status half-installed webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:01 status config-files webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:01 status config-files webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:02 status config-files webmin-virtual-server:all 4.00.gpl 2013-06-03 23:58:02 status not-installed webmin-virtual-server:all 2013-06-03 23:58:02 status installed webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:02 remove webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:02 status half-configured webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:04 status half-installed webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:05 status config-files webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:05 status config-files webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:05 status config-files webmin-virtual-server-theme:all 8.7 2013-06-03 23:58:05 status not-installed webmin-virtual-server-theme:all 2013-06-04 00:14:16 startup archives unpack 2013-06-04 00:14:16 status triggers-pending man-db:amd64 2.6.2-1 2013-06-04 00:14:20 trigproc man-db:amd64 2.6.2-1 2.6.2-1 2013-06-04 00:14:20 status half-configured man-db:amd64 2.6.2-1 2013-06-04 00:14:21 status installed man-db:amd64 2.6.2-1 2013-06-04 00:14:22 startup packages configure

Okay, so it does indeed look like you removed Virtualmin and it’s related plugins, and not just Dovecot :slight_smile:

It may be a matter of just reinstalling those… you can do that with this command:

apt-get install virtualmin-base usermin-virtual-server-theme webmin-security-updates webmin-virtualmin-awstats webmin-virtualmin-htpasswd webmin-virtualmin-dav webmin-virtualmin-svn webmin-virtualmin-mailman webmin-virtual-server webmin-virtual-server-theme

Ok installed virtualmin but i can’t see it yet

http://imm.io/18bVl

root@host:~# dpkg -l ‘webmin-virtual-server*’
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±=========================================-=========================-=========================-=======================================================================================
ii webmin-virtual-server 4.00.gpl all Webmin module for ‘Virtualmin Virtual Servers (GPL)’
ii webmin-virtual-server-theme 8.7 all Webmin theme ‘Virtualmin Framed Theme’
root@host:~#

It may not be configured to use the Virtualmin theme… if you go into Webmin -> Change Language and Theme, you’d want the Webmin theme to be “Virtualmin Framed Theme”.

-Eric

Yeah! Thanks Eric. Now I have no error in webmail :slight_smile:

So… when I try restart dovecot, it gives me this error:

root@host:~# /etc/init.d/dovecot restart doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /usr/share/dovecot/protocols.d/imapd.protocol:1: 'imaps' protocol is no longer necessary, remove it doveconf: Warning: Obsolete setting in /usr/share/dovecot/protocols.d/imapd.protocol:1: 'pop3s' protocol is no longer necessary, remove it Restarting IMAP/POP3 mail server: dovecotdoveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /usr/share/dovecot/protocols.d/imapd.protocol:1: 'imaps' protocol is no longer necessary, remove it doveconf: Warning: Obsolete setting in /usr/share/dovecot/protocols.d/imapd.protocol:1: 'pop3s' protocol is no longer necessary, remove it

Howdy,

Those are just warning messages, and are safe to ignore.

Alternatively, if you don’t want to see them, you can remove the obsolete setting that they refer to in the Dovecot config.

-Eric