backup).
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
504 | Chapter 13: Mailing Lists and ~/.forward
Note that prior to V8, sendmail did no file locking, so writing files by way of the
~/.forward file was not recommended. Beginning withV8, however, sendmail locks
those files during writing, so such use of the ~/.forward file is now OK.
If the SafeFileEnvironment option (?§24.9.103 on page 1084) is set, the user should be
advised to specify the path of that safe directory:
\user
/arch/bob.backup ?†? here /arch was specified by the SafeFileEnvironment option
When the SafeFileEnvironment option is used, the cooperation of the system
administrator might be needed if users are to have the ability to save mail to files
via the ~/.forward file.
13.8.4 Piping Through Programs
The ~/.forward file can contain the names of programs to run. A program name is
indicated by a leading pipe (|) character, which might or might not be quoted
(?§12.2.3 on page 468). For example, a user might be away on a trip and want mail to
be handled by the vacation(1) program:
\user, "|/usr/ucb/vacation user"
Recall that prefixing a local address with a backslash tells sendmail to skip additional
alias transformations. For \user, this causes sendmail to deliver the message (via the
local delivery agent) directly to the user??™s spool mailbox.
Pages:
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903