0

I have an Ubuntu server with a website and a setup with postfix, dovecot, and roundcube.

All was working well. But this week, I have extended the wordpress website from 1 single-site to 6 sites (multisites). As such, I extended the CertBot certificate with the new domains.

In order to do this, I added virtualhosts to /etc/apache2/sites-enabled/domain.com.conf. I ran the certbot command for the domain. It worked well. But I have also "locked" myself out of my postfix/dovecot/roundcube it seems.

Now, when I enter to log in. I go mail.domain.com/mail (Only works without https:// now).

And I try to log in as normal. But it tells me that I cannot connect to the email-server.

When I login on my phone it tells me

Connection to IMAP server failed

.

In mail.log I get the following error:

Mar  1 10:46:52 server-PowerEdge-T40 postfix/lmtp[72562]: 52F033921149: to=<admin@domain.com>, relay=none, delay=336216, delays=336216/0.01/0/0, dsn=4.4.1, status=deferred (connect to mail.domain.com[private/dovecot-lmtp]: Connection refu>

In roundcube errors.log I get the following error:

[01-Mar-2022 11:15:33 +0100]: <2se1rp3p> IMAP Error: Login failed for admin@domain.com against localhost from [public ip from my work]. Could not connect to localhost:143: Connection refused in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php>
  • Connection refused means that the port is not open. Usually that means that it the service is not running or listening on the wrong interface. – Gerald Schneider Mar 01 '22 at 10:37

0 Answers0