*.domain.com

thecrew

New member
Joined
Jan 24, 2006
Messages
4
I would like it when I setup a new user in the template it will redirect users to squirrelmail when they type in mail.domain.com instead of www.domain.com. Can someone direct me on how to do this?

I'm guessing it would be in /usr/local/directadmin/data/templates/virtual_host.conf
 
This is totally untested. Try at your own risk with a test domain you create for the purpose.

First create a subdomain mail in the domain in question.
Then create in the resulting ~/mail folder a redirect in an .htaccess file, pointing it to www.example.com/squirrelmail.

(Do not use the DA method of creating the redirect; it won't work.)

The above should work.

Now all you have to do is figure out how to automate it :) .

Jeff
 
Back
Top