I can't connect to my mail and snappymail admin panel

Ubuntu 20.04.6 LTS (GNU/Linux 5.15.74-1-pve x86_64)

Current Version: 2.3
Build: 4
Current Commit: 5a7eb5133d02bf9ac9c5d1a31ede8ab3f21dd409 
Latest Version: 2.3
Latest Build: 4
Latest Commit: 5a7eb5133d02bf9ac9c5d1a31ede8ab3f21dd409 

Hello, when i want to login to my new e-mail, this error appears

Server message: Can't connect to host "tcp://localhost:143"

I followed this tutorial - How to Build Free SMTP Server with CyberPanel in 5 Minutes - YouTube

i used systemctl status postfix in cli:

postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled)
     Active: active (exited) since Sun 2023-05-14 21:05:14 UTC; 15min ago
   Main PID: 527 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 76961)
     Memory: 0B
        CPU: 0
     CGroup: /system.slice/postfix.service

May 14 21:05:14 CT6677 systemd[1]: Starting Postfix Mail Transport Agent...
May 14 21:05:14 CT6677 systemd[1]: Finished Postfix Mail Transport Agent.

and systemctl status dovecot:

dovecot.service - Dovecot IMAP/POP3 email server
     Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:dovecot(1)
             http://wiki2.dovecot.org/

May 14 21:18:03 CT6677 systemd[1]: Dependency failed for Dovecot IMAP/POP3 email server.
May 14 21:18:03 CT6677 systemd[1]: dovecot.service: Job dovecot.service/start failed with result 'dependency'.
May 14 21:19:03 CT6677 systemd[1]: Dependency failed for Dovecot IMAP/POP3 email server.
May 14 21:19:03 CT6677 systemd[1]: dovecot.service: Job dovecot.service/start failed with result 'dependency'.
May 14 21:20:03 CT6677 systemd[1]: Dependency failed for Dovecot IMAP/POP3 email server.
May 14 21:20:03 CT6677 systemd[1]: dovecot.service: Job dovecot.service/start failed with result 'dependency'.
May 14 21:21:03 CT6677 systemd[1]: Dependency failed for Dovecot IMAP/POP3 email server.
May 14 21:21:03 CT6677 systemd[1]: dovecot.service: Job dovecot.service/start failed with result 'dependency'.
May 14 21:22:03 CT6677 systemd[1]: Dependency failed for Dovecot IMAP/POP3 email server.
May 14 21:22:03 CT6677 systemd[1]: dovecot.service: Job dovecot.service/start failed with result 'dependency'.

i tried systemctl start dovecot

A dependency job for dovecot.service failed. See 'journalctl -xe' for details.

journalctl -xe: (i changed user and domain name)

May 14 21:25:06 CT6677 postfix/smtp[594]: 2CDD1122DB5: to=<[email protected]>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for mail.mydomain.com >May 14 21:25:06 CT6677 postfix/qmgr[526]: 2CDD1122DB5: removed
May 14 21:25:06 CT6677 postfix/pickup[525]: CF25C122DB6: uid=1002 from=<myuser>
May 14 21:25:06 CT6677 CRON[32805]: pam_unix(cron:session): session closed for user myuser
May 14 21:25:06 CT6677 postfix/cleanup[598]: CF25C122DB6: message-id=<[email protected]>
May 14 21:25:06 CT6677 postfix/qmgr[526]: CF25C122DB6: from=<[email protected]>, size=1621, nrcpt=1 (queue active)
May 14 21:25:06 CT6677 postfix/smtp[595]: CF25C122DB6: to=<[email protected]>, orig_to=<myuser>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (ma>May 14 21:25:06 CT6677 postfix/cleanup[590]: D20BE122DB7: message-id=<[email protected]>
May 14 21:25:06 CT6677 postfix/bounce[850]: CF25C122DB6: sender non-delivery notification: D20BE122DB7
May 14 21:25:06 CT6677 postfix/qmgr[526]: D20BE122DB7: from=<>, size=3620, nrcpt=1 (queue active)
May 14 21:25:06 CT6677 postfix/qmgr[526]: CF25C122DB6: removed
May 14 21:25:06 CT6677 postfix/smtp[594]: D20BE122DB7: to=<[email protected]>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for mail.mydomain.com >May 14 21:25:06 CT6677 postfix/qmgr[526]: D20BE122DB7: removed
May 14 21:25:07 CT6677 postfix/pickup[525]: 53880122DB6: uid=1002 from=<myuser>
May 14 21:25:07 CT6677 CRON[32804]: pam_unix(cron:session): session closed for user myuser
May 14 21:25:07 CT6677 postfix/cleanup[598]: 53880122DB6: message-id=<[email protected]>
May 14 21:25:07 CT6677 postfix/qmgr[526]: 53880122DB6: from=<[email protected]>, size=1700, nrcpt=1 (queue active)
May 14 21:25:07 CT6677 postfix/smtp[595]: 53880122DB6: to=<[email protected]>, orig_to=<myuser>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (ma>May 14 21:25:07 CT6677 postfix/cleanup[590]: 5628E122DB7: message-id=<[email protected]>
May 14 21:25:07 CT6677 postfix/bounce[850]: 53880122DB6: sender non-delivery notification: 5628E122DB7
May 14 21:25:07 CT6677 postfix/qmgr[526]: 5628E122DB7: from=<>, size=3699, nrcpt=1 (queue active)
May 14 21:25:07 CT6677 postfix/qmgr[526]: 53880122DB6: removed
May 14 21:25:07 CT6677 postfix/smtp[594]: 5628E122DB7: to=<[email protected]>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for mail.mydomain.com >May 14 21:25:07 CT6677 postfix/qmgr[526]: 5628E122DB7: removed
May 14 21:25:12 CT6677 postfix/anvil[32749]: statistics: max connection rate 1/60s for (smtp:40.92.64.98) at May 14 21:23:31
May 14 21:25:12 CT6677 postfix/anvil[32749]: statistics: max connection count 1 for (smtp:40.92.64.98) at May 14 21:23:31
May 14 21:25:12 CT6677 postfix/anvil[32749]: statistics: max cache size 1 at May 14 21:23:31

i tried to update cyberpanel and restart my vps.
I can’t login to snappymail admin too, when i use login and password from application.ini file this error appears:

Authentication failed

what can i do? :frowning:

I don’t know it seems that dovecot.service fails a lot.
I have been facing this issue for a while sometimes systemctl start dovecot works just fine but then dovecot stops randomly and then when trying to restart dovecot it throws error dovecot.service: Job dovecot.service/start failed with result 'dependency>

1 Like

Hi, thanks for answer. I tried to type dovecot as root in cli and surprised everything works fine. I can login to snappymail using my user@domain account, and i can send/recive emails using snappymail or my thunderbird client. However, when i close SSH client, snappymail logout my mail and i can’t login again, Server message: Can't connect to host "tcp://localhost:143" When i connect to ssh and type dovecot, everything work again. Hope i can find solution for this in google, i’m newbie in linux cli

Did you find a solution yet?