apache / mail question

I’m busy to configure my qube for mutiple domains. That’s working

The only thing which is questioning me is: e-mail is addressed to the servername: www.domain.com, so dennis@www.domain.com is the result when using ie. webmail.
Of course I can change the servername to: domain.com, but than HTML references do go wrong. Or a rewrite has to do the job, but I have no idea how to do this. Anyone?

2 thoughts on “apache / mail question

  1. domain’s container in httpd.conf
    (example, paths could differ with Qube o.s.):

    VirtualHost (tussen haken)
    ServerName grifstate.com
    ServerAdmin dennis
    DocumentRoot /home/sites/home/web
    ServerAlias grifstate.com http://www.grifstate.com
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} !^www.grifstate.com(:80)?$
    RewriteCond %{HTTP_HOST} !^grifstate.com(:80)?$
    RewriteRule ^/(.*) http://www.grifstate.com/$1 [L,R]
    RewriteOptions inherit
    AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    /VirtualHost (tussen haken)

  2. jult says:

    be VERY careful though, the Qube databases, postgres etc. obtain their name info from httpd.conf

    you can completely mess them up, making a mistake in httpd.conf, so keep the original and always remember to make THAT version of httpd.conf active before you perform site-management-related tasks with the Qube webbased admin!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.