O'Reilly logo

Sendmail, 3rd Edition by Bryan Costales

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The mc Configuration Syntax

Under V8 sendmail’s mc configuration technique you include delivery agent definitions in your configuration file using the MAILER( ) mc command. The form for that command looks like this:

MAILER(`name')

For example, SMTP and UUCP support can be included in your file by using the following two commands:

MAILER(`smtp')
MAILER(`uucp')

If you include MAILER definitions for procmail, or uucp, those definitions must always follow the definition for smtp. Note, too, that any modification of a MAILER definition (as, for example, with UUCP_MAILER_MAX) must precede that MAILER definition:

define(`UUCP_MAILER_MAX', `1000000')        here
MAILER(`uucp')
define(`UUCP_MAILER_MAX', `1000000') not here

The delivery agent M definitions that correspond to MAILER( ) commands are kept in the cf/mailer directory.

In general, the files in the cf/mailer directory should never be modified. If one of the definitions needs to be tuned, use the special keywords described under the individual delivery agent equates (Section 20.5). For example, the following line modifies the maximum message size (the M= delivery agent equate, M=) for the UUCP agent:

define(`UUCP_MAX_SIZE',`1000000')

Here, the maximum size of a UUCP message has been increased from the default of 100,000 bytes to a larger limit of 1,000,000 bytes.

Choose Preferred Agents

Four mc configuration macros are available, beginning with V8.10 sendmail, to help you choose the delivery agent you prefer in various situations.

confSMTP_MAILER ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required