How to properly replace webmail software for all virtual servers?

5 posts / 0 new
Last post
#1 Sat, 01/14/2012 - 20:35

How to properly replace webmail software for all virtual servers?

I'd like all virtual servers on my server to use RoundCube. So I have created a separate subdomain: webmail.mainsite.tld and bound it to a dedicated IP, different that which mainsite.tld sits on. Everything works, but unfortunately validation gives this error:

Apache website : The Apache virtual host for this domain does not use the IPv4 address and port

How can I properly replace the system webmail to RoundCube, so that all virtual servers use it?

Sat, 01/14/2012 - 21:56


Well, it doesn't actually have to be on an IP address of it's own.

What you can do is setup a Virtual Server running RoundCube -- and then set the "webmail" redirects for your Virtual Servers to redirect to your centralized RoundCube installation anytime someone browses to webmail.domain.tld.

You can setup the webmail redirects in System Settings -> Server Templates -> Default -> Apache Website.

That said -- it should certainly work to put a given domain on it's own IP address. You can do that by going into Server Configuration -> Change IP address, and setting a private IP address there.


Sat, 01/14/2012 - 22:04


I know it doesn't have to sit on a separate IP, but I am serving webmail through SSL, and SSL for main IP has already been used. So I had to place webmail on a separate IP.

And I did all the webmails redirect through System Settings -> Server Templates -> Default -> Apache Website to webmail.maindomain.tld.

But the problem here, as I see it, conflict between system webmail.maindomain.tld pointed to IP address of the maindomain.tld, and of a separate virtual server webmail.maindomain.tld pointing to another IP.

I guess if I choose different name instead of webmail.maindomain.tld, then everything would be alright.

Sun, 01/15/2012 - 03:39

Is 'webmail' subdomain somehow hardcoded in Virtualmin scripts?

I have cleared everything related to 'webmail' subdomain. Made sure there is no corresponding records in '/var/named/' directory or '/etc/httpd/conf/httpd.conf' file. Re-created subdomain again, but it is not unfortunately available. Digging from outside of the server always gives:

dig webmail.maindomain.tld

; <<>> DiG 9.6-ESV-R4-P3 <<>> webmail.maindomain.tld
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 57951
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;webmail.maindomain.tld. IN A

;; Query time: 13 msec
;; WHEN: Sun Jan 15 01:36:17 2012
;; MSG SIZEĀ  rcvd: 37

Where else should I look to clear related records and create this subdomain from a new?

Tue, 01/17/2012 - 14:38

Looks like this was moved to a new thread:

Topic locked