Dovecot stopped, errorFailed to connect to localhost:143 : Connection refused

11 posts / 0 new
Last post
#1 Wed, 08/23/2017 - 10:35
jvieille

Dovecot stopped, errorFailed to connect to localhost:143 : Connection refused

I disabled Dovecot on 2 identical servers as I do not need this service. However, I get an email notification on one server, not the other. Is there a hidden setting for this ? How can I get rid of it? Thanks

Wed, 08/23/2017 - 11:57
Joe
Joe's picture

Where are you seeing this error? I need some context to figure out where it's coming from.

--

Check out the forum guidelines!

Thu, 08/24/2017 - 02:50
jvieille

I receive an email notification with subject : Cron <web2@ns406606> /home/web2/.usermin/mailbox/auto.pl body :

Error: Failed to connect to localhost:143 : Connection refused Error

Failed to connect to localhost:143 : Connection refused

I can also raise this error on display by running the cron job /home/web2/.usermin/mailbox/auto.pl

I don't wan dovecot to run because I don't need it and to avoid many hacking attempts to connect on POP

Thu, 08/24/2017 - 07:55
Joe
Joe's picture

You've got an autoresponder setup for that user. Disable autoresponders in Usermin for that user, and cron will stop checking for mail.

You can still have autoresponders setup in Webmin, or you can configure Usermin to not use POP/IMAP for checking mail (Usermin also supports directly reading the Maildir, which you can find in the Usermin Configuration module (Webmin->Webmin->Usermin Configuration->Usermin Module Configuration->Read Mail), and set Mail storage format for inbox to "QMail style directory (Maildir)".

I tend to setup my autoresponders in Webmin/Virtualmin, though, if I'm not using the server as a mail server in the general case. You can find that in "Edit Users" under the domain that contains the user, using the "Send automatic reply" option. That way I don't think Usermin needs to run at all (unless you're using it for other stuff...but, it sounds like mail is not an important consideration for you).

--

Check out the forum guidelines!

Thu, 08/24/2017 - 08:53
jvieille

There are no autoresponders for that user, only a forwarder. Thanks for detailing the settings for reading mail without dovecot. It work well on a server, which features a mail read page similar to the one I had with imap collection. However, the second server misses the left administrative/navigation pane and shows an ugly, almost unformatted list of mails

Thu, 08/24/2017 - 09:12 (Reply to #5)
Joe
Joe's picture

Doesn't matter. Forwarders are the same as autoresponders. They also work as the user and run from cron. You either have to setup Usermin to read directly from Maildir, or do all of your forwarding and autoresponding from within Webmin.

I don't understand what you're talking about with "the second server". Is it using a modern theme? (Authentic is recommended.)

--

Check out the forum guidelines!

Thu, 08/24/2017 - 09:40
jvieille

I made the change in usermin "Mail storage format for Inbox" to "QMail style directory (Maildir)".

  • Webmin 1.851
  • Usermin 1.720
  • Authentic 18.49-9

I have 2 identical servers - The second is a backup for the first. Their setup should be the same though we just resinstalled the second one with ubuntu 16.04, the first one runs 12.04.

It is the second freshly reinstalled that has a strange usermin.

When I go to "Login to usermin" from the virtual server user, I get a very different page

  • on the first server, I get the correct read mail page
  • on the second one, the page is missing a ot of stuff - no css apparently, no left pane. the favicon is a "U" in a web instead if the green Virtualmin icon.

This is not linked to the current issue though, I tried using Dovecot/Impa, it is the same.

I also noticed some other differences : different order and differenet/missing icones for some items in webmin/virtualmin menu, the link to the landing status page is in the last bottom menu item in the second server instead of the leftes one in the horizonatl bottom menu.

This might have somtheing to do with Ubuntu 16.04

Thu, 08/24/2017 - 14:48 (Reply to #7)
Joe
Joe's picture

"on the second one, the page is missing a ot of stuff - no css apparently, no left pane. the favicon is a "U" in a web instead if the green Virtualmin icon."

That's the wrong theme. Go to Usermin configuration as I said above, though you need the Language and Themes page instead of module configuration, and set the theme to Authentic Theme.

When did you install the second server? AFAIK the theme should be set automatically, so I'm not sure what happened in your case.

--

Check out the forum guidelines!

Fri, 08/25/2017 - 00:42
jvieille

I installed this server 3 weeks ago. Interestingly, unlike the older installation, the theme choice indicates a default Global theme (Virtualmin Framed Theme), that I had to change for a Personnal choice of Authentic.

I did not know that Usermin had its own settings, which also defaulted on the wrong theme. I changed it.

Sat, 08/26/2017 - 07:58 (Reply to #9)
Joe
Joe's picture

Ah, so that would have been the old installer. It should have set the right theme, but I'm not gonna sweat it that it didn't, since the new Virtualmin 6 installer is out, and I know it defaults to the right thing.

The global theme sets the theme for all users, personal theme sets it for the currently logged in user. Personal theme can be chosen by the user if they have the permission to change themes. Personal them overrides the global theme for that one user.

--

Check out the forum guidelines!

Sun, 10/29/2017 - 11:14
dagremote

New install here on Centos 7 and had same issue. Resolved by noticing that the line related to the listening was set to IPV6.

/etc/dovecot/dovecot.conf Was: listen = [::] Changed to: listen = *

Restarted dovecot and it worked.

I had been setting up Postfix, squirrelmail, webmin, usermin, and dovecot all on the same day, so I blame myself. Must have mucked it up along the way.

All good now.

w.

Topic locked