Sir,
I did copy the files from /usr/local/psa/admin/conf/templates/default to /usr/local/psa/admin/conf/templates/custom and made the changes according to you..
only domainwebmail.php
has the code as you mentioned
ServerAlias "webmail.<?php echo $VAR->domain->asciiName ?>"
<?php foreach...