variables like $PARENT_DOM or ${PARENT_DOM} don't work on Default Settings For Sub-Servers - Mail for domain

Hi, After reading this article on documentation http://www.virtualmin.com/documentation/id,template_variable_listing

and also reading changes of virtualmin 3.70 http://www.webmin.com/vchanges.html

I tried to write a custom message on Default Settings For Sub-Servers - Mail for domain - Email message to send upon server creation

Variables ${DOM} ${USER} ${PASS} work but ${PARENT_DOM} is outputted untouched and $PARENT_DOM outputs a large integer.

Can you please look into it!

Could you also add here http://www.virtualmin.com/documentation/id,template_variable_listing

exactly which variables are valid that have a prefix PARENT. For example is PARENT_USER valid? .. or maybe a way to list all available variables These variables seem a very strong feature and I intend to use it a lot..

Thanks!

Status: 
Closed (fixed)

Comments

Sorry, those docs were incorrect - the proper variable names are like $PARENT_DOMAIN_DOM and $PARENT_DOMAIN_HOME

Thanks! I changed PARENT prefix to PARENT_DOMAIN and it is ok.

Just another question though. Is there a variable that strips the .com from the domain of the sub-server? For example domain : testdomain.com has $USER = testdomain If I add a subdomain : testsubdomain.com which variable will produce "testsubdomain"?

I tried $USER but it is the same as $PARENT_DOMAIN_USER Tried $PREFIX and $MAILBOX but they have empty output

$PREFIX may be the first part of the domain name, assuming there is no clash. But there is no variable which is always certain to be just the first part..

Just needed to say thank you for your quick responses!

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