mail.domain.com = test page for ssl/tls-aware Apache

robj

Verified User
Joined
Aug 4, 2007
Messages
53
I'm going to assume that the follow should not be displaying when I type mail.MYDOMAIN.com

Hey, it worked !
The SSL/TLS-aware Apache webserver was
successfully installed on this website.

If you can see this page, then the people who own this website have just installed the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully...

How can I change mail.MYDOMAIN.com to redirect to squirrelmail or even a static page?

Thanks
rob
 
Thanks for the help chatwizrd.

I have next to NO experience with apache, but will attempt both suggestions later tonight, then report back.

rob
 
Here's a quick question that the tutorial doesn't make clear. Do i edit the virtual_host2.conf file? or the virtual_host.conf file? Or does it matter?

Secondly, should I add this:
Code:
<VirtualHost YOUR-IP:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/html/squirrelmail
    ServerName webmail.yourdomain.com
    ServerAlias webmail.* mail.*
    ErrorLog /var/log/httpd/error_log
</VirtualHost>

to the user admin httd.conf. Or should this be added to /etc/httpd/conf/httpd.conf?

thanks
rob
 
Last edited:
Revisited.

I did this awhile back and it doesn't seem to be carrying over to new domains. It worked for awhile, but not anymore.

I added a domain as an ADMIN, but mail.domain.com doesn't seem to work. Does this only apply changes to new users? new domains?

rob
 
DirectAdmin doesn't create websites for anything but the website you've set up, and the website you've set up with a www leadin.

For anything else you're entirely on your own.

The instructions given were for how to it. It'll have to be done for every domain.

Or you can remove all of those you've already set up, and move the user-level htpd.conf file to the custom directory and then edit it to add the mail alias. Then when you add new domains, and rewrite old ones, the mail alias will visit the site mainpage.

To have it redirect to squirrelmail you should add to the user-level httpd.conf file (in the custom directory) a copy of what the instructions show, but modified to work for any domain.

Jeff
 
Back
Top