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,firstname.lastname@example.org 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 email@example.com [188.8.131.52], 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:<firstname.lastname@example.org> SIZE=65 29561 <<< 250 <email@example.com>... Sender ok 29561 >>> RCPT To:<firstname.lastname@example.org> 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