I'm running Plesk 11 with SElinux enforced. Also it took me a while to realise what's going on, because I don't have IMAP-port open on my firewall. All users are forced to use IMAPS anyway.
The issue started with Horde ceasing to log users in. Further investigation revealed that IMAP-login is immediately disconnected by server if username/password is correct. Dropping SElinux into permissive seems to fix this, but... I'd rather have extra security for my users.
The horde-log displays something like this:
HORDE [error] [imp] FAILED LOGIN for [email protected] [1.2.3.4]
to {127.0.0.1:143 [imap/notls]} [pid 19587 on line 139 of "/usr/share/psa-horde/imp/lib/Auth/imp.php"]
Manual tests with telnetting into port 143 and using SSL-connection with openssl s_client revealed that IMAPS is not affected with the issue. My fix is to start using SSL for Horde/IMP. I edited /etc/psa-webmail/horde/imp/servers.php and changed:
'protocol' => 'imap/ssl/novalidate-cert',
'port' => 993,
This does not seem to be a very popular issue. Apparently most servers don't have enforced SElinux. Hopefully this helps somebody.
Regards,
Jari Turkia
The issue started with Horde ceasing to log users in. Further investigation revealed that IMAP-login is immediately disconnected by server if username/password is correct. Dropping SElinux into permissive seems to fix this, but... I'd rather have extra security for my users.
The horde-log displays something like this:
HORDE [error] [imp] FAILED LOGIN for [email protected] [1.2.3.4]
to {127.0.0.1:143 [imap/notls]} [pid 19587 on line 139 of "/usr/share/psa-horde/imp/lib/Auth/imp.php"]
Manual tests with telnetting into port 143 and using SSL-connection with openssl s_client revealed that IMAPS is not affected with the issue. My fix is to start using SSL for Horde/IMP. I edited /etc/psa-webmail/horde/imp/servers.php and changed:
'protocol' => 'imap/ssl/novalidate-cert',
'port' => 993,
This does not seem to be a very popular issue. Apparently most servers don't have enforced SElinux. Hopefully this helps somebody.
Regards,
Jari Turkia