On 6/16/2015 11:53 AM, Michael Peter wrote: >> On 6/16/2015 10:21 AM, Michael Peter wrote: >>> Hi, >>> >>> I have question about postfix logfile (/var/log/maillog), Does The log >>> mention the "from email header" or the "return-path email header" in the >>> log file ? >>> >>> Jun 16 16:17:43 mailhost postfix/qmgr[12095]: CB992123F1B1: >>> from=<send...@domain.com>, size=2639, nrcpt=1 (queue active) >>> >>> Example: >>> Return-Path: <send...@domain.com> >>> From: <send...@domain.com> >>> >>> Because it seems that some times the "from address" mentioned in the log >>> file is different that the from header which is actually in the email >>> itself. >>> > > then why the from address in the email is different than the from address > in the /var/log/maillog for the same email ?
There is no requirement that the addresses are the same. Look at this mail for an example. -- Noel Jones > >>> Thank you. >>> >>> Peter Michael >>> >> >> >> The log records the envelope sender as given in the MAIL FROM >> command during the SMTP conversation. This is recorded before any >> headers are transmitted by the client. >> >> >> >> -- Noel Jones >> > >