Prev | Current Page 894 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

procmail.org/.
13.8.5.2 The slocal program
The slocal program, distributed withth e mh distribution, is useful for sorting incoming
mail into separate files and folders. It can be used withbothUnix-style mail files
and mh-style mail directory folders. The slocal program (as recommended in its manual)
is typically used in the ~/.forward file like this:
"| /usr/local/lib/mh/slocal -user user"
The disposition of mail is controlled using a companion file called ~/.maildelivery.
13.8.6 Force Requeue on Error
Normally, a program in the user??™s ~/.forward file is executed with the Bourne shell:
Mprog, P=/bin/sh, F=lsDFMeuP, S=10, R=20, A=sh -c $u
?†‘
the Bourne shell
One drawback to using the Bourne shell to run programs is that it exits with a value
of 1 when the program cannot be executed. When sendmail sees the exit value 1, it
bounces the mail message.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
506 | Chapter 13: Mailing Lists and ~/.forward
There will be times when bouncing a mail message because the program could not
execute is not desirable. For example, consider the following ~/.forward file:
"| /usr/local/lib/slocal -user george"
If the directory /usr/local/lib is unavailable (perhaps because a file server is down or
because an automounter failed), the mail message should be queued rather than
bounced.


Pages:
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906
motoryzacja szkoła narciarska wyrejestrowanie samochodu legnica obciążniki Wczasy nad morzem