Configuring sendmail Options
sendmail has a number of options that allow you to customize the way it performs certain tasks. There are a large number of these, so we’ve listed only a few of the more commonly used ones in the upcoming list.
To configure any of these options, you may either define them in the
m4 configuration file, which is the preferable method,
or you may insert them directly into the sendmail.cf
file. For example, if we wished to have sendmail fork
a new job for each mail message to be delivered, we might add the following
line to our m4 configuration file:
define(`confSEPARATE_PROC',`true')
The corresponding sendmail.cf entry created is:
O ForkEachJob=true
The following list describes common sendmail m4 options (and
sendmail.cf equivalents):
-
confMIN_FREE_BLOCKS(MinFreeBlocks) There are occasions when a problem might prevent the immediate delivery of mail messages, causing messages to be queued in the mail spool. If your mail host processes large volumes of mail, it is possible for the mail spool to grow to such a size that it fills the filesystem supporting the spool. To prevent this, sendmail provides this option to specify the minimum number of free disk blocks that must exist before a mail message will be accepted. This allows you to ensure that sendmail never causes your spool filesystem to be filled (Default: 100).
When a mail target such as an email alias is expanded, it is sometimes possible for the sender to appear in the recipient list. This ...
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.
Read now
Unlock full access