SMTP and Sendmail

The Simple Mail Transfer Protocol (SMTP) is responsible for transferring email messages from one server to the next. It's a simple protocol, as its name suggests, designed only for establishing the identity of the sender and the recipient, and transmitting a message's contents. The sender and recipient are each specified by an email address, which consists of a username and a hostname, separated by the at symbol, @; if the SMTP server that receives the message has the same hostname as the one in the email address, it knows the message is intended to reach a recipient there. If not, it knows it must relay the message to another host.

In the simplest case, this is the way an email message travels from one user to another; in the ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.