• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Couldn't open connection to server - IMAP - Samsung Android Mail

avlza

New Pleskian
I am trying to setup my email hosted on Plesk via VULTR on my Android Phone and I get the error Couldn't open connection to server.

I did a manual setup with the following settings :

Mail server username : My Email Address
Incoming mail server : My Domain Address (example.com)
Outgoing mail server : My Domain Address (example.com) (server requires authentication)

IMAP securely over SSL/TLS : port 993.
SMTP : port 465.

But still, no-go.


I tried following this article, still I get the same error.
 
Make sure that ports 993 (IMAP) and 465 (SMTP) is listening on your Plesk server, not firewalled and accessible from your Android phone.
 
Make sure that ports 993 (IMAP) and 465 (SMTP) is listening on your Plesk server, not firewalled and accessible from your Android phone.
Thanks for your advice, but how do I check the if the ports are listening to my server?
 
Some e-mail applications have difficulties with proper authentication with DIGEST-MD5, e.g. Android Mail App. What they do is to always first try DIGEST-MD5 als encryption algorithm, which fails because what the server returns cannot be interpreted by the phone correctly and what the phone sends cannot be understood by the server correctly (for unknown reason). This causes two auth failure entries in the maillog file. When you have Fail2Ban enabled, these two auth failures trigger the jail so that the IP address that the phone is using will be blocked. This again leads to your symptom that your phone cannot connect to the server.

For that reason, remove this mechanism from Dovecot. The apps will then automatically use another mechanism.

# vi /etc/dovecot/conf.d/00-auth_mechs.conf
Code:
auth_mechanisms = plain login cram-md5 apop

# vi /etc/dovecot/dovecot.conf
and remove “digest-md5” from auth_mechanisms line.

Then restart Dovecot
# service dovecot restart

Then unblock the IP address of your phone (go to a website like whatismyipaddress.com on your phone, read the IPv4/IPv6 address and unblock it in Plesk Fail2Ban.
 
Back
Top