The basic components of the mail system are:
gzip -dc sendmail.8.12.7.tar.gz | tar -xvf -
cd sendmail-8.12.7
# Follow the steps in the INSTALL file, which walk you through compiling. # Sendmail and setting up your configuration files.
The configuration files
3. access
Writing a sendmail configuration file
Generating sendmail.mc
VERSIONID(`My very own sendmail.mc’)
OSTYPE(linux)
DOMAIN(generic)
VERSIONID, OSTYPE, and DOMAIN these are the m4 macro names. The values in the parentheses are the options for that macro.
We can add some features to the mail server.Features are added using the FEATURE macro.
eg. FEATURE(access_db, `hash -o -T> TMPF FEATURE(local_lmtp)
Lastly, setting some mailers for the system:
MAILER(local)
MAILER(smtp)
This configures sendmail for local mail operation and SMTP mail operation.
Generating sendmail.cf
/usr/share/sendmail/cf/m4/cf.m4 \
sendmail.mc
This assumes your sendmail m4 directory is in /usr/share/sendmail/cf. It may be in a different location on your system. Sometimes you’ll find it in /usr/src/sendmail. Once you run the above command, you’ll have a ready-to-use sendmail.cf file.
Starting and Stopping sendmail
To start the server, run these commands:
/usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
This starts the sendmail MTA as well as the queue runner.
To stop sendmail, issue this command:
Sendmail reacts to signals in a normal manner and when it is sent SIGTERM it will shut itself down.
CONCLUSION: