Configure Virtualmin email for email clients (like, outlook.

We just installed a new dedicated server with virtualmin.
We created our first domain and everything works fine.
The problem is we need to connect the email we just created with email clients like (, gmail, outlook express etc.
Let’s say we have
pop3 server configuration: -> 110 without secure connection
smpt server configuration: 0-> with ssl connection (25/465/587)

We have tried everything but nothing works. We always get either pop3 mail server problem (with 995 and ssl or without) either smpt mail server problem.
Do we need to configure something in admin area?

I have the same problem, when you look at the logs, you see that your server does NOT report “” back, instead it reports the name of your bare metal machine.


– your server is named “
– you create a virtual host called “
– you try to get mail from using SSL/TLS
– it fails
– because postfix/dovecot are responding from “

I would LOVE to see this fixed, but the question has been asked many times.

I wonder if creating a “” domain alias would help.

There’s nothing to fix. Connect to to get email.

So which are the right settings?
Do we have to make changes to the ports and mail configurations?

There are some suggestions here:

And that’s why it doesn’t get fixed. There’s no SSL cert on “” so it errors out.

Looking at the notes I made when recently setting up Virtualmin for the first time:

Assuming a user has been set up in Virtualmin > Edit Users > Add a user to this server - a user such as,

the mail client settings are:

mail server:
username: info.mydomain
clear text authentication
my server requires authentication - yes
SSL outgoing 25 / incoming 995

Hope this is of some use. (Note the username format - this is what had me foxed to start with)

That’s a good point. The IMAP4 and POP3 servers on will need to be configured with SSL certificates for either or for *

And so far as I can tell, Virtualmin won’t do this, because Virtualmin always assumes that users always connect to their own domains. I think you will need to manually install the SSL certificate in this case.

One way of doing the above would be to let Virtualmin install the SSL certificate for a user’s domain, call it, into the mail daemons. Then search for the entry for that, and manually replace it with one for the SSL certificate for or for *

This assumption within Virtualmin, that each user connects to his own domain for email, and not to the underlying server, has led to a lot of confusion. I think in the next release they should simply have everybody connect to the server’s name. All the big guys do it this way. If you put your website and email on Google Apps for Domains, you DO NOT connect your IMAP4 client to your own domain for email, you connect it to the name of Google’s server.

I create dummy SSL enabled virtual servers for my mail server domain and my Webmin/Virtualmin server domain (e.g. & then use the SSL management tools in Server Config for CSRs etc (or set up Let’s encrypt for my Webmin virtual servers to periodically get me new certs). All I need to do is remember to click the appropriate [ Copy to Webmin ] [ Copy to Usermin ] [ Copy to Dovecot ] [ Copy to Postfix ] buttons every 2-3 months (or longer if it’s a purchased cert).
Note-I have nothing to do with or - just using them as examples.

Thanks for this tip

OS: Centos7
Webmin version 1.851
Usermin version 1.720
Virtualmin version 5.99

its working for me thanks for you & for your way in declaring the proper solution.