7 and later
When using the procmail delivery agent, actual delivery is performed by the procmail(1)
program, which can be used for local delivery. We described one use of procmail when we
described FEATURE(local_procmail) (?§17.8.25 on page 627). In that example, local_
procmail was tuned withLOCAL_ mc configuration macros, but here it is tuned with
PROCMAIL_ mc configuration macros.
Support for the procmail delivery agent is included in your mc configuration file like this:
MAILER(`smtp??) ?†? define first
MAILER(`procmail??) ?†? define second
Note that the smtp delivery agent must be defined before you can define procmail.
The procmail(1) program can be made to filter mail and even route mail to different files by
changing a few configuration file rules. For example, it can be used as a delivery agent to
Table 20-11. Defaults for the pop delivery agent
Macro ?§ Default
POP_MAILER_ARGS ?§20.5.2.1 on page 738 A=pop $u
POP_MAILER_FLAGS ?§20.8 on page 759 F=lsDFMqPenu
POP_MAILER_PATH ?§20.5.11.1 on page 750 P=/usr/lib/mh/spop
None ?§20.5.13 on page 751 R=EnvToL/HdrToL
None ?§20.5.15 on page 753 S=EnvFromL
None ?§20.5.16 on page 754 T=DNS/RFC822/X-Unix
POP_MAILER_QGRP ?§20.5.12 on page 750 No Q= default
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
730 | Chapter 20: The M (Mail Delivery Agent) Configuration Command
handle inbound bounces for mailing lists by setting up a new rule in the parse rule set 0
that routes all recipients that end in -request for delivery with procmail:
LOCAL_CONFIG
Kisrequest regex -a@MATCH -request$
LOCAL_RULE_0
R $+ < @ $+ > $: $(isrequest $1 $) $| $1 <@$2>
R $* @MATCH $| $+ < @ $+ > $#procmail $@ $3 $: $2
R $* $| $* $2
This bit of magic requires that you first declare a regex database-map type (?§23.
Pages:
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277