Is 'webmail' subdomain somehow hardcoded in Virtualmin scripts?

5 posts / 0 new
Last post
#1 Sun, 01/15/2012 - 17:14
yngens

Is 'webmail' subdomain somehow hardcoded in Virtualmin scripts?

Coming from http://www.virtualmin.com/node/20820#comment-93940. 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

;; 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

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?

Sat, 04/07/2012 - 07:53
yngens

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:

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

to get this result:

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!

Tue, 01/17/2012 - 04:26
yngens

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

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?

Tue, 01/17/2012 - 09:25
andreychek

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".

-Eric

Wed, 04/23/2014 - 20:49 (Reply to #4)
aplima

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 http://www.${DOM}/roundcube

CentOS 6.5 Virtualmin 4.07gpl Webmin 1.680

Thanks for any help

Topic locked