The "Noob Link" Technical Reference Index About Homepage

 ____  _____ _   _ ____  __  __    _    ___ _     
/ ___|| ____| \ | |  _ \|  \/  |  / \  |_ _| |    
\___ \|  _| |  \| | | | | |\/| | / _ \  | || |    
 ___) | |___| |\  | |_| | |  | |/ ___ \ | || |___ 
|____/|_____|_| \_|____/|_|  |_/_/   \_\___|_____|

Making a backup mail server using sendmail.

1. Install sendmail (probally already installed by default). No special
settings needed. 

2. Now we need to generate a file. THis is done thru m4. The file
m4 generates the .cf file from usually ends in .mc . I use these settings but
their are a ton more that can be used:

FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl

there should be an m4 directory or sendmail directory with info on m4. In the
OSTYPE above I have OpenBSD but you might have something different. You can
find a list on ostypes in the m4 dir. I found mine by doing a "find" on: cf.m4.
This told me exactly where the m4 dir was. Then up or down a few dirs from
there is the "ostypes" dir. Just find yours in that dir and put in the name in
OSTYPE above. Make sure you have procmail installed to use the file above and
dump the lines above into a file called

3. Now we use the m4 macro processor to gen the file. You will need
to know the location of your cf.m4 file to do this. Do a find on this file if
you can't find it. Then execute the command:
m4 /location/of/your/cf.m4 >

4. Now copy the generated into the /etc/mail dir.

5. The other files you'll need in that dir are:

6. put your domains in ( put that file in the /etc dir or
/etc/mail I'm not sure which.

7. On the backup mail server open up (/etc/ on linux)
and find the line:

# who gets all local email traffic ($R has precedence for unqualified names)

After the DH put the name of the primary mail server who should get the mail

# who gets all local email traffic ($R has precedence for unqualified names)

8. On the primary mail server edit the file access (the access database
/etc/mail/access in linux)
Add the line to allow the backup mail server to relay mail to it. Example:

backup.mail.server RELAY

9. To change queueing time try these files look for format "QUEUE=20m" or the
like. then restart sendmail.