Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Mail Services

Email-related daemons can be put into two categories: mail transport agents (MTAs), which send new email messages to their destination machines, and mail delivery agents (MDAs), which send mail that’s landed in a user’s mailbox to that user’s personal computer.

Mail Transport Agents (sendmail)

A mail transport agent sends email to other computers, most often via the SMTP protocol. Mac OS X ships with sendmail , the most common mail-serving program on the Internet.

Tip

Run sendmail only if you need to provide mail-sending services to yourself or your network. You don’t need to run this service to simply send email, so long as there is an SMTP server that will accept connections from your machine; most ISPs provide mail services on their own servers, for example.

Using sendmail

Mac OS X has no easy interface for running sendmail as a daemon, but it doesn’t take too much work to get it going, since most of the setup has already been done for you. Just edit /etc/hostconfig, changing the line MAILSERVER=-NO- to MAILSERVER=-YES-. This line is read by the startup script at /System/Library/StartupItems/Sendmail/Sendmail, which cleans up the mail queue and starts the sendmail daemon by issuing the command sendmail -bd -q1h. See Section 13.8 later in this chapter for more information on how this works. When you restart the machine, sendmail should start along with it. (You can also test it by simply running the script from the command line.)

From there, sendmail runs quite ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata