RE: Multiple mail servers for a single domain?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just by way of commentary -- I'll have to find a backup mail server some
day -- perhaps with a friend living far away who keeps a machine on
24X7. I wonder how many businesses and individuals went without backup
mail service when the power went out in New York. 

Bob Cochran


On Sat, 2003-08-23 at 07:38, Cowles, Steve wrote:
> Vidol Loeung wrote:
> > I tried to stop the mail service on mail1.mydomain.com, expecting that
> > from then on, whenever there is mail for the domain,
> > mail2.mydomain.com should be the one to receive and queue that mail.
> > Yes, it actually did; however, I got the error 553 (system config
> > error): "mail loops back to me (MX problem)".
> > 
> > Both my mail servers mail1 and mail2 run Sendmail in RH9.0 and they
> > both point to ns.mydomain.com as their DNS server, which runs BIND
> > also in RH9.0. 
> > 
> > Please, you have any clues to the problem?
> 
> After reading this entire thread, I'm confused as to your final goal. In
> your first post, you seem to be asking about configuring two active mail
> servers sharing a common mail storage (like Network Attached Storage, NFS,
> etc...). The replies to this thread seem to address viable options along
> with pointing out the pros/cons of each. Now you seem to be configuring one
> primary mail server with a secondary mail server that simply queues mail
> should the primary go off-line. My response addresses the latter.
>   
> First, your DNS entries look fine. The "Loops back to me" problem is related
> to your sendmail configuration on the secondary mail server. If your goal is
> to simply queue e-mail on this server until the primary comes back on-line,
> then your will need to use sendmail's mailertable feature. 
> 
> Using the info you have supplied in your post, simply add the following (see
> below) to your /etc/mail/mailertable and /etc/mail/relay-domains files on
> mail2. Then type "make" in /etc/mail to recompile the mailertable database.
> Since your editing a non-database file (relay-domains) you will have to
> restart sendmail.
> 
> # cat /etc/mail/mailertable
> mydomain.com	esmtp:[mail.mydomain.com]
> 
>   and in /etc/mail/relay-domains
> 
> #cat /etc/mail/relay-domains
> mydomain.com
> 
> The above configures sendmail to relay any e-mail addressed to mydomain.com
> to mail1.mydomain.com using the esmtp mailer. The brackets around
> mail1.mydomain.com tells sendmail to ignore the specifed MX records for
> final delivery. Which BTW is causing the "loops back to me" problem.
> Obviously, you do NOT want mydomain.com listed in
> /etc/mail/local-hosts-names.
> 
> Further reading should include /usr/share/sendmail-cf/README. This is
> basically the sendmail man pages.
> 
> Steve Cowles
-- 
Need help with computer hardware or software? I can take care of it in
your home at very reasonable cost.

Bob Cochran
Greenbelt, Maryland, USA
http://www.greenbeltcomputer.biz/

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux