The procmail program is extremely versatile. You can configure the Postfix MTA to
directly send all incoming messages to procmail for local delivery or just allow individual
mail users to customize their mail environment to use procmail.
To allow individual users to use procmail, do the following:
1. Configure the mailx .forward file to send incoming messages to procmail.
2. Create a .procmailrc file to instruct procmail on how to process incoming mail
messages.
The .forward file was discussed earlier in the mailx section. Instead of forwarding all
incoming messages to a remote email address, you can forward your messages directly to
the procmail program. This is done using a single line in the .forward file:
|/usr/bin/procmail
This command instructs mailx to send all of your messages to procmail instead of the
standard mailbox. Next, you must tell procmail what to do with your messages.
Mail delivery is defined by recipes defined in a .procmailrc file, located in each user??™s
home directory. Each procmail recipe defines a matching expression value and an action
for procmail to take when a message matches the expression.
Pages:
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678