Getting Dovecot to work (IMAP)

I have installed Webmin on a droplet, and imported my old cPanel account from my old server. Pretty much everything is fine, but i’m having problems with IMAP.

Basically, the whole mailbox imported fine, and I can access it all via the webmail with no real issue. Even STMP works fine.

But for some reason, i cannot get IMAP to work.

If i point it to the same name as STMP (, i get a generic “could not connect to the IMAP server” error. If i set it to the hostname of the server ( on port 993, I get “Trying to log into this IMAP account failed. Verify the user/pass are correct.”

They are definitely correct, as I checked the username in webmin, and I reset the password to be sure.

Any ideas?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Yes, those error messages are (rougly copied) from OSX’s <br> <br>I’m considering giving up with Virtualmin and setting these things up from scratch though. If i restore my snapshot and try again, i’ll check this.

Are those error messages from your local mail client? What are you using? <br> <br>The first thing I’d check is whether port 993 is actually accessible. Are you doing any firewalling? What’s the output of running <code>netstat -plunt</code> on the server?

Yes, that’s what I originally tried, and that doesn’t work either.