Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro
"sendmail, 4th Edition"
host> SIZE=65
29561 <<< 250
... Sender ok
29561 >>> RCPT To:
29561 <<< 250 Recipient ok
29561 >>> DATA
29561 <<< 354 Enter mail, end with "." on a line by itself
29561 >>> The first line of data here,
29561 >>> the second line of data here,
29561 >>> and so on.
Notice that the process ID changes. After sendmail collects the message, it performs a
fork(2) and exec(2) to handle the actual delivery.
Because these transaction files include message bodies, they should be guarded.
Never use the -X switch with the daemon unless you are prepared for a huge file and
the possibility of disclosing message contents to nonprivileged users.
14.3 Log with syslog
Logging is the process of issuing one-line messages or warnings that will be either
displayed to a human, archived to a file, or both. The mechanism that sendmail uses
to produce these logging lines is called syslog(3). The sendmail program is concerned
only with issuing its messages and warnings. Once they are issued, the syslog facility
takes over and disposes of them in a manner described in the file /etc/syslog.conf.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
514 | Chapter 14: Signals, Transactions, and Syslog
Statements in this file determine whether a logged line is written to a device (such
as /dev/console) appended to a file, forwarded to another host, or displayed on a
logged-in user??™s screen.
Pages:
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918