[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: How to setup so two urls go to one email???
- Subject: [cobalt-users] Re: How to setup so two urls go to one email???
- From: Bruce Timberlake <bruce@xxxxxxxxxx>
- Date: Mon Apr 26 16:44:00 2004
- Organization: BRTNet.org
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> I am trying to setup our cobalt so that emails that go to 2 domains go to one
> email.
>
> Basically, my main site is xyz.com and I have about 5 users on it. We are
> now planning on using abc.com as our domain on our businesss cards and I
> want to make sure that if email is sent to mark@xxxxxxx or mark@xxxxxxx that
> I get them all in my main email box. Plus the abc.com domain has to
> redirect to the xyz.com site.
>
> Right now all I have done is setup my dns to send all traffic to abc.com to
> go to xyz.com but that does not solve my email problem.
>
> Do I still need to the setup the abc.com domain on the raq as an actual site
> with all the usernames that I used on the xyz.com site?
For the web traffic:
First, ensure you have proper DNS "A" records set up with your registrar
for abc.com and www.abc.com to point to the IP address of the current
xyz.com.
Then you need to put "www.abc.com" and "abc.com" in the "Web Server
Alias" field in the xyz.com "Site Settings" screen. This tells Apache
that web traffic for the abc.com domain should be handled by the xyz.com
domain.
Note that in the user's browser URL bar, their entry of "abc.com" will
be rewritten to be "www.xyz.com", which may be confusing to them,
especially if abc.com is the domain you are now promoting. You might
want to actually alter the real domain name to be "abc.com" and make
xyz.com the alias. Just change/overwrite the xyz.com entries in the
"Site Settings" screen and you should be ok. All the stuff on the
backend will be changed automagically.
For the email traffic:
First, ensure you have proper DNS "MX" records set up for abc.com.
Then put the aliased domain (abc.com) in the "Mail Server Alias" field.
Note that if you take my suggestion from above, the "real" domain name
will now be abc.com, and you'll want to put xyz.com in the Mail Server
Alias field.
Behind the scenes, when you enter a domain name in the Mail Server Alias
field, an entry is made in /etc/mail/local-host-names, telling sendmail
it's ok to accept email addressed to someone at that domain.
At the same time, an entry is made in /etc/mail/virtusertable (in the
"accept-email-at-domain routes" section) that looks like
@abc.com %1@xxxxxxxxxxx
which 'rewrites' (for delivery routing purposes) any email bound for
abc.com to username@xxxxxxxxxxxx The www.xyz.com address is then
rewritten to a local user/login name, and the mail is added to the mail
spool for that user (/home/spool/mail/username).