Is 'webmail' subdomain somehow hardcoded in Virtualmin scripts?

Coming from Nobody noticed my comment there, so creating new thread.

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

Digging it from inside the server shows correct Answer and Authority sections, which are totally missing when digged from outside.

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

Since ‘’ seems to be Virtualmin/Webmin’s system file I didn’t want to touch it. Instead I deleted corresponding records for webmail subdomain in ‘/etc/logrotate.conf’ and re-run

virtualmin disable-feature --all-domains --logrotate
virtualmin enable-feature --all-domains --logrotate

This time no errors, everything looks ok and I hope I did not screw up my server. Was it ok to delete records for virtual server from ‘/etc/logrotate.conf’ or it might cause some problems elsewhere?

Is ‘webmail’ subdomain somehow hardcoded in Virtualmin scripts?

Well, a webmail cname and redirect are added to each Virtual Server.

So if you add a Virtual Server named, then browsing to will redirect to the webmail installation on your system.

You can control whether that’s added, and where it redirects to, by going into System Settings -> Server Templates -> Default -> Apache Website, and setting “Redirect webmail.domain to Usermin” and “URL for webmail redirect”.


Somehow, my newly created subdomain for webmail started to work on the next day. But because prior to re-creation of the subdomain I cleared all the apache records related to Webmail, it seems I broke my daily backups.

Backup gives:

Copying Logrotate configuration …
… no log rotation configuration found!

and stops.

I then found and have run these commands:

virtualmin disable-feature --all-domains --logrotate virtualmin enable-feature --all-domains --logrotate

to get this result:

Updating server .. Setting up log file rotation .. .. Log file rotation failed! : .. the log file /var/log/virtualmin/webmail.maindoman.tld_access_log is already being rotated at ../ line 1360.

Would appreciate any advice how to fix this. Thanks!

Well I’ve been trying to use roundcube as default webmail
Installed using install scripts and accessible if I use:

http://www.domain.tld/roundcube or http://domain.tld/roundcube

If I try to use: http://webmail.domain.tld I’m presented with a 403 Forbidden error

I did configured on Server Templates with

CentOS 6.5
Virtualmin 4.07gpl
Webmin 1.680

Thanks for any help