Michael Munger:
> I am writing a log parser so that when users complain "so and so sent me
> an email and I didn't get it" I can query the logs and find this with
> ease. Ultimately, I want ot make this self service through a web page.
> 
> In a transaction like this:
> 
> 119970-Nov 29 13:56:12 mcdb2 postfix/smtpd[12371]: disconnect from
> unknown[118.201.69.1]
> 119971-Nov 29 13:56:33 mcdb2 postfix/smtpd[12587]: connect from
> mail-lf0-f51.google.com[209.85.215.51]
> 119972:Nov 29 13:56:34 mcdb2 postfix/smtpd[12587]: NOQUEUE: reject: MAIL
> from mail-lf0-f51.google.com[209.85.215.51]: 552 5.3.4 Message size
> exceeds fixed limit; proto=ESMTP helo=<mail-lf0-f51.google.com>
> 119973-Nov 29 13:56:35 mcdb2 postfix/smtpd[12587]: disconnect from
> mail-lf0-f51.google.com[209.85.215.51]
> 
> The email is rejected without making reference to the 'from' and or 'to'
> addresss?. Is there a way I can configure this to include the from here?
First, there can be no TO address before the client sends MAIL FROM.
Second, the size check is done before checking the sender address,
presumably because it is more efficient that way. But I guess some
code could be swapped around.

However, Postfix logging is intended for system adminstrators, not
users. Asking to make it suitable for users is really outside the
scope of this project. Users can enter the wrong information in the
wrong place, and other users should not be exposed to that.

        Wietse

Reply via email to