Create a custom virtualhost template directory (if one does not already exist):
mkdir -p /usr/local/psa/admin/conf/templates/custom
Then, copy the current webmail configuration template:
cp /usr/local/psa/admin/conf/templates/{default,custom}/domainWebmail.php
Modify the custom template according to the customer’s needs:
subdomain=mail; sed -i.$(date +%s) "s/\(ServerAlias.*\"\)webmail.\(.*\)/\1$subdomain\2/g" /usr/local/psa/admin/conf/templates/custom/domainWebmail.php
Reconfigure all vhosts to use the new template:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
(Horde) You will also need to change a file in the Horde docroot so CSS works properly:
subdomain=mail; sed -i.$(date +%s) "s,\(preg_replace('/\^\)webmail\(.*\),\1$subdomain\2,g" /usr/share/psa-horde/imp/config/servers.php
(Atmail) Parallels has modified their default installation of Atmail to present a customized login box that automatically fills in the domain based on which URL was used to access webmail. When we changed the subdomain configuration, we broke this functionality – so we need to modify the login box so it works again:
subdomain=mail; sed -i.$(date +%s) "s,\(domain\.replace('\)webmail\(.*\),\1$su
No comments:
Post a Comment