Configure to Use smrsh

After you have built and installed srmsh (see the preceding section), and after you have populated its approved directory (see the following section), you can include support for it in your m4 configuration file with the FEATURE(smrsh):

FEATURE(`smrsh')
MAILER(`local')

Note that the FEATURE(smrsh) must precede the local delivery agent declaration. If these lines are reversed, the following error will print when you run Build:

*** FEATURE(smrsh) must occur before MAILER(local)

If you installed smrsh in a location other than its default, you will need to add an argument to the FEATURE(smrsh):[170]

FEATURE(`smrsh', `/usr/sbin/smrsh')

Use of smrsh is recommended by CERT, so you are encouraged to use this feature if possible.

[170] * You can also achieve this by using the confEBINDIR compile-time macro, but that macro is not favored because it also affects the mail.local program.

Get sendmail, 4th Edition 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.