Monday, June 23, 2008


Sendmail is a mail transfer agent (MTA) that is a well-known project of the open source, free software and Unix communities, which is distributed both as free software and proprietary software. Its also called the mail server daemon. Other mail server daemons include qmail, postfix, exim, mmdf, smail etc. server daemons looks after the receiving incoming mail and delivers outgoing mail.

Sendmail configuration files
All sendmail related configuration files have to be put in /etc/mail directory.


It specifies what hosts or IP addresses have access to the local mail server and what kind of access(OK, REJECT,RELAY) they have.
OK - allowed to send mail to the host as long as mail's final destination is the local machine.
REJECT - reject for all mail connections
RELAY - allowed to send mail for any destination through this server.
e.g.     550 we dont expect mail from you
a.source.of.spam     REJECT     OK
128.32          RELAY

This database contains a list of virtual mailboxes that are expanded to other user(s), files, programs or other aliases.
root: ajantha
customers: :include: /etc/mail/lists/customer-list

The last alias causes how to keep a list of users for an aliases in an external file.

Consist list of host names that sendmail is to accept as the local mail host. if the mail server was to accept mail for the domains and the above file will contain:

It controls the overall behavior of sendmail. The master sendmail configuration file can be built from m4 macros.

This maps email addressse for virtual domains and mailboxes to real mail boxes. The mail boxes can be local, remote, aliases defined.
e.g ajantha saman