Creating a Webmail Sub-Server


First, I'll try to explain what I want to do, then I'll explain what I did, then I'll ask the best way to get there from here.

Basically, I want to configure a different default webmail other than Usermin. Yes, we have done this for years, but I'd like to do it 'right'.

I've been looking at

I don't mean to be rude, but I have never met anyone that likes Usermin for webmail. I find that it is very frustrating for IMAP accounts with many folders. But it does have those nice buttons for spam handling...

In the past, I just installed RoundCube into a folder of our main web site, accessed as This works.

I started thinking about how I could make everything to do with 'admin' and 'webmail' redirects work without throwing SSL warnings...that was my first mistake...thinking.

So, I thought I would create a new sub-server '' and install RC there which would use the proper SSL cert for no warnings. However, I got the error:

"Failed to create virtual server : The domain is already hosted by your Apache webserver"

So, I dug references to '' out of the Apache conf file, restarted Apache, and I was then able to create the sub-server ''.

After thinking some more, I thought I had better ask you if that was a good idea?

Is there a better way? (we're pretty set on using the name '').

Ultimately, after it is all working well, I plan to modify the template and use CLI commands like:

virtualmin modify-web --all-domains --no-webmail

virtualmin modify-web --all-domains --webmail

Basically, I hope to redirect to the primary domain name and use the existing SSL cert with zero warnings. Come to think of it, why don't you guys already do that? ;-)

Would it be possible to do something similar with the '' redirects?

Is it possible to give RoundCube 'buttons' for spam handling (like Usermin)?

Is there any way to automatically configure 'from addresses' (identities) for users of RoundCube? It would be a drag to tell users to use webmail that they have to configure before use...

Thanks in advance,




Howdy -- it's no problem that you're trying to use RoundCube, there's a lot of folks who use that.

It's possible to configure the webmail redirect, so that it goes to any URL of your choosing.

For example, you can configure it so that if you go to, it redirects to

Or whatever URL you like.

Would that do what you're after?

That can be configured in System Settings -> Server Templates -> Apache Website, and in there, you'll see settings for the webmail and admin redirects, and what URL's they should go to.