Beginning with V8.2
Space between the
Otherwise, the file is opened in append mode, and each line that is written to it looks like this:
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,email@example.com 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 firstname.lastname@example.org [126.96.36.199], 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:<email@example.com> SIZE=65 29561 <<< 250 <firstname.lastname@example.org>... Sender ok 29561 >>> RCPT To:<email@example.com> 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