12.2.2 Delivery to Files
When any of the addresses to the right of a colon in the alias list begin with a / character,
delivery is made by appending the mail message to a file. This is automatic
withall modern configuration files, but there are exceptions.* Beginning withV8.7
sendmail, any delivery agent for which the F=/ flag (?§20.8.13 on page 766) is set can
also append messages to files. If you want to disable this ability, delete the F=/ flag
from all delivery agent declarations in your configuration file.
In the list of addresses to the right of the colon, sendmail considers any local address
that begins with the / character to be the name of a file.?? Whenever the recipient
address is a file, sendmail attempts to deliver the mail message by appending it to the
file. This ability to deliver mail to files is included in sendmail primarily so that failed
mail can be saved to a user??™s ~/dead.letter file. It can also be used (through use of
aliases) to deliver mail to other files, but that use is less than optimal, as you will see.
To deliver to a file, sendmail first performs a fork(2) and gives the child the task of
delivery. The fork is necessary so that sendmail can change its effective uid and gid, as
we will show. The child then performs a stat(3) on the file. If the file exists, its file permissions
are saved for later use.
Pages:
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838