Hi,
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 https://www.virtualmin.com/documentation/id%2Cwebmail_and_virtualmin.
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 https://mydomain.com/rc. 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 'webmail.mydomain.com' 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 webmail.mydomain.com is already hosted by your Apache webserver"
So, I dug references to 'webmail.mydomain.com' out of the Apache conf file, restarted Apache, and I was then able to create the sub-server 'webmail.mydomain.com'.
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 'webmail.mydomain.com').
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 'admin.mydomain.com' 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,
G
Comments
Submitted by sonoracomm on Fri, 10/21/2016 - 16:55 Pro Licensee Comment #1
Submitted by andreychek on Fri, 10/21/2016 - 17:54 Comment #2
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 webmail.domain.com, it redirects to https://main_domain.com/roundcube.
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.