I am trying to determine the easiest way to allow a user to type in either webmail.domain.com or horde.domain.com to get to their webmail.

Obviously I already have a CNAME in the DNS for horde and webmail. I made a change to httpd.include so that the webmail VirtualHost also had an ServerAlias for horde.*, with that the login page comes up, but can't login.

I then notice that I am getting failures for user@horde.domain in the maillog. Looking at /home/httpd/vhosts/webmail/horde/config/servers.php there is "PSA patch" where it appears they are using a regular expression to replace webmail.domain with www.domain as the host. So I change the regular expression to (webmail|horde) to get it to change either domain to www.domain, but that doesn't appear to do anything, I still get IMAP login failures from user@horde.domain.

What am I missing?

Andy

P.S. How can I make changes to /etc/httpd/conf/httpd.include so that I don't lose them when using the admin pages? (After I added horde.* to my ServerAlias line I noticed the next time I used the admin page that it was removed.