Report this

What is the reason for this report?

Getting Dovecot to work (IMAP)

Posted on May 29, 2014

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 (mail.mydomain.com), i get a generic “could not connect to the IMAP server” error. If i set it to the hostname of the server (web-1.mydomain.com) 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?



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!

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.

What username are you using to connect via IMAP? Does <a href=“http://www.virtualmin.com/documentation/email/pop-and-imap”>this</a> help?

Kamal: I’ve already checked that article and I am 100% certain i’m using the correct username as listed under Users.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.