Roundcube script installation - best practice

contabo basic VPS 6Gb memory
OS type and version AlmaLinux 9.3
Webmin version 2.111
Virtualmin version 7.10.0

Hi Everyone,

I want to be able to use Roundcube for all virtual servers. Do I need to install the script under every virtual server, as it seems if I go to webmail.mydomain.com it is resolving to the server default domain (where there is already the roundcube script installed), and I can put in the domain mail username/password (of any virtual server created, regardless of whether I have installed the roundcube script under that domain), and I get access OK.

Thanks

webmail.domain.com normally will resolve to https://domain.com:20000/ as per directives.

RewriteCond %{HTTP_HOST} =webmail.domain.com
RewriteRule ^(?!/.well-known)(.*) https://domain.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.domain.com
RewriteRule ^(?!/.well-known)(.*) https://domain.com:10000/ [R]

I have one domain where I send it too roundcube where I change the directives.

RewriteCond %{HTTP_HOST} =webmail.domain.com
RewriteRule ^(?!/.well-known)(.*) https://www.domain.com/roundcube/ [R]
RewriteCond %{HTTP_HOST} =admin.domain.com
RewriteRule ^(?!/.well-known)(.*) https://domain.com:10000/ [R]

Its goes to that domain not the servers hostname.

Hi Stefan,

Thanks for the reply. This doesn’t seem to be the experience I am getting… I’m very much on the newbie side of the curve here, so don’t feel it’s anything I could have changed, for fear of breaking stuff.

I’ve two new VPS servers, both only 10 days old (all updated to the latest versions of everything).

Test server is blue.itwatch.co.uk live server is leo.itwatch.co.uk (itwatch.co.uk DNS is handled externally, with that zone file pointing to these two servers). I have created a VS on each server to match the server name (this is the default VS if just the IP address is used). Under these VSs I have installed the roundcube script.

So by going to blue .itwatch.co.uk/roundcube or leo .itwatch.co.uk/roundcube (space added so this don’t show the destination rather than the address) I’ll be presented with a roundcube login prompt (and I can obviously use the details for any mail enabled account on any domain to login to roundcube mail from this prompt).

Now if attempt to go to webmail.bourboncollection.com (a VS on blue.itwatch.co.uk, that does have roundcube added as a script), I am forwarded to roundcube under blue.itwatch.co.uk.

image

If I go to webmail.fashionrail.com (a domain that only has DNS and Apache enabled, no e-mail), it too forwards to roundcube under blue.itwatch.co.uk

and another domain webmail.spectrumgalway.com (enabled for mail, but no roundcube script installed). This too forwards to roundcube under blue.itwatch.co.uk.

I’ve many other VSs setup on that server, and they all forward as above…

So I decided to test if it was the same results under the live server, and it seems to be…

webmail.gragnola.com forwarding to leo .itwatch.co.uk/roundcube (and gragnola VS has no roundcube script). Other VSs domain on this server all forward to the roundcube folder as above.

I don’t mind this result at all, but I was concerned there maybe something I was doing wrong, and that I should have the roundcube script installed under every VS that had mail enabled…

Thanks

Hi Everyone,

So I have to own up to having made a change I had no memory of! I’ve been trawling the server for where something might have been set, and I’ve found this (under System Settings, Server Templates, Website for domain section),

image

This has to be something I changed at some point as it is not generic…

So I guess me final query is, is it OK to just have roundcube under one VS, but any VS on the server be able to access it, or am I potentially doing something negative by operating this way.

Thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.