> There are 2 sites, both residing on my server: compros.co.il and cpt.co.il.
> I want http://www.compros.co.il and http://compros.co.il point to
> http://www.cpt.co.il
The way I set this scenario up is as follows (all from the BQ gui, no shell editing
required):
1) DNS records:
domain1.com A record > IP
www.domain1.com A record > IP
domain1.com MX record > www.domain1.com
domain2.com A record > IP
www.domain2.com A record > IP
domain2.com MX record > www.domain2.com
SOA's I have pointing to my nameservers and the hostmaster email addresses setup for
each domain, although these should not matter as long as they point to the CORRECT
nameservers as per the WHOIS record for each domain.
IP used in ALL A records MUST BE THE SAME.
I also input a PTR record for the IP to point back to www.domain1.com (this assists in
email server lookups resolving properly). I do have PTR rights delegated to my
nameservers though, which you may not have, in which case contact your IP owner to
input the relevant record. I also use unique IP's for each "master domain" so to speak
(in this example www.domain1.com) so I input an entry in /etc/hosts file for that IP /
FQDN combo so HELO/EHLO respond as per RFC's. This entire paragraph is NOT REQUIRED
however for working web+email hosting.
2) Website setup (single site only required in BQ gui):
IP: as setup in DNS
Hostname: www
Domain name: domain1.com
Webserver aliases: domain1.com, domain2.com, www.domain2.com
Email server aliases: domain1.com, domain2.com, www.domain2.com
Email aliases: as appropriate (applies to all email server aliases)
3) Email advanced options:
Add domain1.com and IP to the "Relay" box.
That is all I've ever done on raq3/raq4/bq iso 2.5 to 4.5 - never had an issue.
GL.
Brett