Skip to contentSkip to conversation

making sense of sendmail logfile

DISCUSSION urgrue 2 participants 2 messages Sep 2, 2002

lore
Share & tools
lore

urgrue

author
#0 lore raw

i need to find out who sent a particular message. how exactly can i figure out, from sendmail's logfile, what "from:" line matches what "to:" line?
i used to think it was the PID, but at least in this case, there is no PID matching the PID on the "to:" lines (perhaps because this is an alias, sendmail uses a different process?).

in this example:

Sep  2 11:10:21 ns sendmail[31782]: g8289hE31779: ....

what about that last g8289hE..etc..., does this tell me which parts of the logfile have to do with each other?
(so can i just grep g8289... from the logfile to get the full log of the transaction?)

#1 lore raw
Quoted 7 lines · urgrue

i need to find out who sent a particular message. how exactly can i figure out, from sendmail's logfile, what "from:" line matches what "to:" line?
i used to think it was the PID, but at least in this case, there is no PID matching the PID on the "to:" lines (perhaps because this is an alias, sendmail uses a different process?).

Quoted 6 lines

in this example:

Sep  2 11:10:21 ns sendmail[31782]: g8289hE31779: ....

what about that last g8289hE..etc..., does this tell me which parts of the logfile have to do with each other?
(so can i just grep g8289... from the logfile to get the full log of the transaction?)

"g8289hE31779" is the queue id, which identifies an individual message. All log entries with the same queue id correspond to the same message.

So, yes, you can grep for the queue id to get all log messages corresponding to a specific email message.

Signature · 1 line
Glynn Clements <[email protected]>