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 xxx.xxx.xxx.xx:80
How can I properly replace the system webmail to RoundCube, so that all virtual servers use it?
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.
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.
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 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
;; QUESTION SECTION:
;webmail.maindomain.tld. IN A
;; Query time: 13 msec
;; SERVER: 10.0.1.1#53(10.0.1.1)
;; 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?
Looks like this was moved to a new thread: