[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SECOND REPLY Re: [cobalt-users] Two email servers for one domain
- Subject: SECOND REPLY Re: [cobalt-users] Two email servers for one domain
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Wed Sep 25 21:05:55 2002
- Organization: nobaloney.net
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Zhang Shiping wrote:
> I have a domain (mydomain.com) hosted by my RaQ 4 but
> email is hosted by another Linux email server. Is it
> possible to have two Linux email servers so if on one
> email server cannot find a user's email account it
> will
> look for the email account on another server?
Okay, here's another scenario, presuming Jale is correct in his
supposition...
If the email for the domain is hosted by another email server the easy
way to do it is just to not accept email on your RaQ for the domain, and
to use an MX record to direct all email to the other machine.
However, if you've got some users on your RaQ and the others on the
other server, you can do it this way:
1) Make your RaQ the high-priority email server for the domain.
2) Host email normally for the domain email-users whose email is hosted
on your RaQ.
3) At the bottom of the /etc/mail/virtusertable file on your RaQ you
need a line similar to this one:
@domain.com <tab, not spaces> %1@xxxxxxxxxxxxxxxxxxxxxxx
Where domain.com is replaced by the real domain name and
"secondserver.domain.com" is domain name for the second box.
This will send all email for the domain that's not addressed to specific
users on your Raq to the same user name on secondserver.domain.com,
which must of course, be set up to receive email for the remaining
users.
4) After you've modified /etc/mail/virtusertable, run (as root):
# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
5) make sure that secondserver.domain.com is represented in DNS by both
an A record and an MX record.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net, P. O. Box 52672, Riverside, CA 92517
voice: +1 909 778-9980 * fax: +1 909 548-9484