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:
Since ‘web-lib-funcs.pl’ 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
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 example.com, then browsing to webmail.example.com 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 Virtualmin.com and have run these commands:
Updating server webmail.maindomain.com ..
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 ../web-lib-funcs.pl line 1360.
Would appreciate any advice how to fix this. Thanks!