Configure Virtualmin email for email clients (like, outlook.

11 posts / 0 new
Last post
#1 Wed, 02/24/2016 - 02:57

Configure Virtualmin email for email clients (like, outlook.

Hi. 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?

Wed, 02/24/2016 - 07:45

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.

Wed, 02/24/2016 - 08:44

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

Thu, 02/25/2016 - 09:07 (Reply to #3)

And that's why it doesn't get fixed. There's no SSL cert on "" so it errors out.

Thu, 02/25/2016 - 14:03 (Reply to #4)

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.

Wed, 02/24/2016 - 15:29

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

Wed, 02/24/2016 - 19:21 (Reply to #6)
Thu, 02/25/2016 - 10:43 (Reply to #7)

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)

Wed, 07/26/2017 - 14:14 (Reply to #8)

Thanks for this tip

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

Tue, 09/20/2016 - 00:06
CraigL's picture

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.

Craig Lawrie IT Services Manager DNG Technology

Thu, 03/07/2019 - 02:28 (Reply to #10)

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

Topic locked