Securing-Optimizing-RH-Linux-1_2_260
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
260
improve lookup speed. If you configure your Sendmail to use a Central Server (Mail Hub) to
handles all mail, you dont need to install aliases and aliases.db files on the neighbor server or
client machines.
Step 1
Create the aliases file (touch /etc/aliases) and add the following lines by default:
#
# @(#)aliases 8.2 (Berkeley) 3/5/94
#
# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/mail.
#
# >>>>>>>>>>
The program "newaliases" must be run after
# >> NOTE >>
this file is updated for any changes to
# >>>>>>>>>>
show through to sendmail.
#
# Basic system aliases -- these MUST be present.
MAILER-DAEMON: postmaster
postmaster:
root
# General redirections for pseudo accounts.
bin:
root
daemon: root
nobody:
root
# Person who should get root's mail
#root:
admin
NOTE: Your aliases file will be probably far more complex, but even so, note that the example
shows minimum forms of aliases.
Step 2
Create the aliases.db file:
Since /etc/aliases is a database, after creating the text file as described above, you must use
makemap program to create the database map.
·
To create the aliases database map, use the following command:
[root@deep /]# makemap hash /etc/aliases.db < /etc/aliases
The /etc/mail/virtusertable, domaintable, mailertable, and virtusertable.db,
domaintable.db, mailertable.db files for the Central Mail Hub
All of these files relate to particular features of Sendmail that can be tuned by the system
administrator. Once again, these features are usually required only in the Central Mail Hub
server. The following is the explanation of each one.
The virtusertable & virtusertable.db files
A virtusertable is a database that maps virtual domains into news addresses. With this feature
mail for virtual domain on your network can be delivered to local, remote, or a single user
address.
The domaintable & domaintable.db files
A domaintable is a database that maps old domain to a new one. With this feature multiple
domain names on your network can be rewriting from the old domain to the new.