I cannot login to roundcubemail for two days…
The day before that everything worked still fine… (perhaps a update - I don’t know anymore for sure…). I didn’t change any configuration files however…
Now, every time I try to login, roundcubemail says “Connection to storage server failed”. In the /var/log/roundcubemail/error.log, I found IMAP Error: Login failed for aaron@example.com from 192.168.42.2. Could not connect to localhost:143: Verbindungsaufbau abgelehnt in /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap.php on line 197 (POST /webmail/?_task=login?_task=login&_action=login) (where I replaced my domain name by example.com… and sorry that it is german…)
I have already reinstalled roundcubemail, nethserver-roundcubemail and dovecot… but without any success regarding the error…
The line mentioned in the log is throws an if roundcubemail cannot connect to dovecot/imap…
does anyone have an idea? or do you need more information?
btw, I disabled selinux already for another reason (this has nothing to do with the error however - I have only read somewhere that the error could come also from selinux…)
Thank you for your answers…! [quote=“m.traeumner, post:2, topic:6845”]
I found two things at Roundcube Forum,
a problem with upper case in the name
a missing entry at the host file
[/quote]
All my users are lowercase… hence that cannot be the problem…
I also checked the /etc/hosts file…The defining line of 127.0.0.1 is 127.0.0.1 localhost localhost.localdomain
Looks as usual, or?
[quote=“giacomo, post:3, topic:6845”]
systemctl status dovecot
[/quote]~ ]# systemctl status dovecot dovecot.service - Dovecot IMAP/POP3 email server Loaded: loaded (/usr/lib/systemd/system/dovecot.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/dovecot.service.d limits.conf Active: active (running) since Wed 2017-05-17 18:33:49 CEST; 18h ago Main PID: 31167 (dovecot) CGroup: /system.slice/dovecot.service 31167 /usr/sbin/dovecot -F 31171 dovecot/anvil 31172 dovecot/log
hence, dovecot seems to be running correctly…
[quote=“filippo_carletti, post:5, topic:6845”]
nc -v localhost 143
[/quote]~ ]# nc -v localhost 143 Ncat: Version 6.40 ( http://nmap.org/ncat ) Ncat: Connection refused.
That is obviously the problem…!!! Thank you!!
But how to fix it?
This gives me no output at all…! (even no error message)
this returns exactly the same ports as you have written… [quote=“filippo_carletti, post:7, topic:6845”]
Check /var/log/imap content, even after restarting dovecot
[/quote]
The last entry in this log file is from 15.05… there I logged in to roundcubemail the last time successfully… even no new entries when restarting dovecot service…
I think that dovecot is not running.
I can say that dovecot is stable as a rock, it never crashed in any of the hundreds of systems I administer, so I don’t have experience on debugging it.
I think you should collect some information and search/ask on the dovecot mailing list.
Dovecot wiki has a troubleshooting section: https://wiki2.dovecot.org/
This means that dovecot is acting only as a sieve server. You’re missing bot pop3(s) and imap(s). Ports 110 995 143 993.
Googling a bit, I found that you can disable protocols in dovecot.conf.
Here’s mine:
my output ~ ]# grep protocols /etc/dovecot/dovecot.conf # 20protocols -- configure access to mailboxes protocols = imap lmtp sieve
only pop3 is missing…
Furthermore, I found in the /var/log/maillog many connections via dovecot but not from me…!! For example, May 18 16:35:02 assa dovecot: lmtp(23443): Disconnect from local: Successful quit
It seems that emails from/to my root account which are automatically sent by the server can be delivered by dovecot…
I will test if I can login via thunderbird… I also don’t guess that it works but…
I solved the problem!!!
I had somehow disabled the IMAP protocol via the server manager… it is under configuration -> email -> mailboxes -> Mailbox access protocols
Perhaps, one could add it in the inline help or/and in the admin manual that disabling IMAP there causes that roundcubemail doesn’t work anymore…! or what do you think?