URL for webmail redirect ignoring ${dom}

I inserted a URL for webmail. redirection which, as help suggests, contains a ${dom} in form of https://mydomain.tld/webmail/?_domain=${dom} But ${dom} does not get replaced by the actual domain when generating the apache config files.

Status: 
Closed (fixed)

Comments

Howdy -- the variable names are case sensitive. That is -- rather than using ${dom}, you'd want to use ${DOM}.

I did a test with ${DOM} in the webmail redirection, and it worked correctly... so that should do the trick for you.

Let us know if you have any other questions!

ok, then you might want to fix your help text:

"By default, Virtualmin will redirect requests to http://webmail.thedomain.com to Usermin on the same system, like https://thedomain.com:20000/. However, this field can be used to change the redirect URL, perhaps to a single hostname for all your domains for which you have an SSL certificate, like https://webmail.yourcompany.com:20000/. Or you can redirect to another webmail application on the same domain, by entering a URL like http://www.${dom}/squirrelmail/."

cheers :)

I verified that it indeed does not work when the variable is lower-case, such as ${dom}.

He's right then Jamie, the help text for "URL for webmail redirect" should probably be updated to reflect the upper-case variable name :-)

Thanks - I will fix this help page in the next release (3.84)

Automatically closed -- issue fixed for 2 weeks with no activity.