autoconfig.cgi created does not map mail server correctly

When Virtualmin creates a virtual server, the autodiscover mail config file placed in /cgi-bin/autoconfig.cgi does not have the correct mail server names.

Example: with a mail server as

This is what gets set in the file: $SMTP_HOST $

It should be: $SMTP_HOST $

Manual edit correctly the problem, until a recheck or template update replaces the autoconfig.cgi.



It should be possible to access mail at as well as though, right?

Also, you can configure the autoreply XML template at System Settings -> Server Templates.

I am experiencing the exact same problem. Why is that happening?