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

RE: [cobalt-users] Backup MX Server



John,

   If I understand correctly, you want backupmail.domain.com to just queue
incoming mail if mail.domain.com is down. To do this, you'll need to
generate a sendmail.cf file that uses a mailertable. Without getting
majorly into how to setup sendmail, etc...Here's how my config.mc file
looks to accomplish what you want to do:

divert(0)dnl
VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
FEATURE(`use_cw_file')
define(`DATABASE_MAP_TYPE', `hash')
FEATURE(`mailertable', `hash /etc/mail/mailertable')
FEATURE(`access_db', `hash /etc/mail/access')
FEATURE(`blacklist_recipients')
FEATURE(`dnsbl')
FEATURE(`relay_hosts_only')

   The only line you're really interested in is the "mailertable" line.
Once you've generated the sendmail.cf file, create a file
/etc/mail/mailertable that looks like this:

domain.com             smtp:[mail.domain.com]

   Save the file, then run:

makemap hash /etc/mail/mailertable < /etc/mail/mailertable

   This will build the mailertable.db file that sendmail will use to
redirect mail. In the end, this machine (the backup mail server) will now
accept mail for "domain.com" but will not attempt to deliver it locally. It
will instead send all the mail to the machine "mail.domain.com". If
mail.domain.com is down, it will keep trying. The default, I believe, is 5
days.

   Keep in mind this is not default Cobalt Raq behavior. You may experience
weirdness when modifying other domains for mail through the GUI if you
implement your own sendmail.cf. I wouldn't recommend doing it on a Cobalt
machine unless you're familiar with how it handles the sendmail config
files. The above config should work on any linux machine though. Good luck.

Ron Penna
Systems Engineer
Netrica Inc.
phone: 716-340-1969
email: rpenna@xxxxxxxxxxx



                                                                                                              
                    "John M"                                                                                  
                    <discuss@xxxxxxxx>             To:     <cobalt-users@xxxxxxxxxxxxxxx>                     
                    Sent by:                       cc:                                                        
                    cobalt-users-admin@list.       Subject:     RE: [cobalt-users] Backup MX Server           
                    cobalt.com                                                                                
                                                                                                              
                                                                                                              
                    11/19/2001 01:33 PM                                                                       
                    Please respond to                                                                         
                    cobalt-users                                                                              
                                                                                                              
                                                                                                              




In this scenario, the backup MX server would permit any mail going to
domain.com in itself and continue to relay it to the primary mail server
until a time-out period (a few days) has exceeded.  The backup server
should
not challenge usernames nor need usernames to be entered.  I don't want to
have my users create user names on their primary mail server than have to
go
to the backup mail server and re-create users names there.

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Dan Kriwitsky
Sent: Tuesday, November 13, 2001 5:27 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] Backup MX Server


> Where can I find info for setting up a Backup MX server with my Cobalt
Raq
> as my primary server.
>
> IE in Domain.com
>
> 10 mail.domain.com
> 20 backupmail.domain.com
>
> what software can I use to capture the mail and attempt to redeliver for
a
> period of time?
>