26.4 Log Transactions with -X
Beginning with V8.2
sendmail
, the
-X
Space between the
cannot open Otherwise, the file is opened in append mode, and each line that is written to it looks like this:
The
To illustrate, consider sending a mail message to yourself and to a friend at another site:
% These few lines of input produce a long /tmp/xfile . The first few lines of that file are illustrative:
29559 <<< To: yourself,friend@remote.host 29559 <<< Subject: test 29559 <<< 29559 <<< This is a test. 29559 <<< . 29561 === CONNECT remote.host 29561 <<< 220 remote.host ESMTP Sendmail 8.7.5; Sun, 12 May 1996 08:06:47 -0600 (MDT) 29561 >>> EHLO your.host 29561 <<< 250-remote.host Hello you@your.host [206.54.76.122], pleased to meet you 29561 <<< 250-8BITMIME 29561 <<< 250-SIZE 29561 <<< 250-DSN 29561 <<< 250-VERB 29561 <<< 250-ONEX 29561 <<< 250 HELP 29561 >>> MAIL From:<your@your.host> SIZE=65 29561 <<< 250 <your@your.host>... Sender ok 29561 >>> RCPT To:<friend@remot.host> 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 fork (2)s and exec (2)s to handle the actual delivery.
Because these transaction files include message bodies, they should
be guarded. Never use the |
|