add this to the /etc/httpd/conf/sites/www.example.com file:
<Directory "/home/sites/www.example.com/html/webmail/">
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{SERVER_NAME}/webmail/$1 [L,R=303]
</IfModule>
</Directory>