> 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.
Thank you for your reply, but because i am trying to block spammers email address, i would be grateful if you can explain the following issue. how come sender email address mentioned in the postfix log file is different than the sender email address mentioned in the email ? if postix really log the envelope sender as given in the MAIL FROM command during the SMTP conversation and not "return-path email header" then how come i can see that the log file mentioned in a different sender email address than the email sender appears at outlook or webmail ? Sorry for rasing this subject, but i searching for answer to block spammers, as they use different email sender address than the orignally logged to posftix log file and the email it self. Thanks Peter Michael > > > > -- 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 >>> >> >> > >