FEATURE(local_procmail)

Use procmail(1), etc. as local delivery agent V8.7 and later

The procmail(1) program can handle a user’s mail autonomously (for example, sorting incoming mail into folders based on subject) and can function as a sendmail delivery agent. Some administrators prefer procmail(1) in this latter role over normal Unix delivery agents. If this is your preference, you can easily use procmail(1) in that role with FEATURE(local_procmail):

FEATURE(`local_procmail')

FEATURE(local_procmail) changes the P=, F=, and A= equates for the local delivery agent into:

P=/usr/local/bin/procmail                  ← see §20.5.11 on page 748
F=SPfhn9                                   ← see §20.5.6 on page 743
A=procmail -Y -a $h -d $u                  ← see §20.5.2 on page 738

If you have installed procmail in a different location, you can specify that alternative location with a second argument:

FEATURE(`local_procmail', `/admin/mail/bin/procmail')

Beginning with V8.10, sendmail allows this FEATURE(local_procmail) to accept additional arguments to define the A= values (set with LOCAL_MAILER_ARGS; How to define A= with your mc configuration on page 738) and the F= values (set with LOCAL_MAILER_FLAGS; Pre-V8.10 mc modification of F= on page 744). Those additional arguments were added to support other programs in addition to procmail(1), such as maildrop(1) and scanmails(1).[241] They are used like this:

FEATURE(`local_procmail', `/admin/mail/bin/procmail', `A= stuff here', `F= stuff
here')

If you need to specify command-line arguments different from the defaults ...

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.