Unix Network Admin   «Prev  Next»
Lesson 1

Using Configuring sendmail

In this module, we will examine how electronic mail is used on UNIX machines. Specifically, we will examine the sendmail program, the most widely used email agent on UNIX systems. While sendmail can be notoriously difficult to configure, newer versions of the program automate this process and make sendmail easier to use from a system administrator’s point of view. After completing this module, you will be able to:
  1. Explain the email process and the use of agents
  2. List the major responsibilities of the sendmail agent
  3. Describe how sendmail uses the SMTP protocol to forward email across the Internet
  4. Compile sendmail
  5. Use a .mc template file and M4 to create a sendmail configuration file automatically
  6. Test a new sendmail configuration before deploying it
  7. Use nslookup to view MX records

Linux System Administration

Advantages of Email

Imagine yourself with pen and paper, writing a letter to a colleague far away. You finish the letter and sign it, reflect on what you’ve written, then put the letter into an envelope. You put your colleague’s address on the front, your return address in the lefthand corner, and a stamp in the righthand corner, and the letter is ready for mailing. Electronic mail (email for short) is prepared in much the same way, but a computer is used instead of pen and paper. The post office transports real letters in real envelopes, whereas sendmail transports electronic letters in electronic envelopes. If your colleague (the recipient) is in the same neighborhood (on the same machine), only a single post office (sendmail running locally) is involved. If your colleague is in a distant location, the mail message will be forwarded from the local post office (sendmail running locally) to a distant one (sendmail running remotely) for delivery. Although sendmail is similar to a post office in many ways, it is superior in others:
  1. Delivery typically takes seconds rather than days.
  2. Address changes (forwarding) take effect immediately, and mail can be forwarded anywhere in the world.
  3. Host addresses are looked up dynamically. Therefore, machines can be moved or renamed and email delivery will still succeed.
  4. Mail can be delivered through programs that access other networks (such as Unix to Unix Communication Protocol [UUCP] and Bitnet). This would be like the post office using United Parcel Service to deliver an overnight letter.

SEMrush Software 1 SEMrush Banner 1