Name
FEATURE(local_procmail)
Synopsis
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 the local_procmail feature:
FEATURE(`local_procmail')
The local_procmail feature changes the
P=
, F=
, and
A=
equates for the local
delivery agent into:
P=/usr/local/bin/procmail ← see P= F=SPfhn9 ← see F= A=procmail -Y -a $h -d $u ← see A=
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
local_procmail
feature to accept additional
arguments to define the A=
values (set with
LOCAL_MAILER_ARGS; See this section), and the
F=
values (set with LOCAL_MAILER_FLAGS; See this section). Those additional arguments were added to
support other programs in addition to
procmail(1), such as
maildrop(1) and
scanmails(1).[6] 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 shown earlier, you can do so either with the second argument (the A= stuff here), or by using the LOCAL_MAILER_ARGS (See this section) mc macro:
FEATURE(`local_procmail') ...
Get Sendmail, 3rd 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.