OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: mail logging

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Sat Jan 05 2008 - 11:15:32 CST


On Sat, Jan 05, 2008 at 05:27:27PM +0100, M. Braun postfix-users wrote:

> Hi,
>
> Victor Duchovni schrieb:
> >> So to sum it up, you're telling me
> >> - one cannot decrease logging (except turning it off completely) due to
> >> design of postfix
> >>
> >
> > With syslog-ng, you can suppress any mail logs that don't meet specified
> > conditions.
> >
> Is there a way to make postfix log a given header of the mail e.g.
> Message-ID ?

- The SMTP server or pickup daemon log message origin (user or remote client)

- The cleanup daemon logs the message-id when mail enters the (incoming)
  queue.

- The queue manager logs the envelope sender address when mail enters the
  active queue.

- Delivery agents log per-recipient success/fail status.

- The queue manager logs message completion (removal from the queue).

You don't have to retain these logs. I have syslog-ng switch to a new log
file hourly. One can at that point digest the log to just the information
you want retained, and compress that. Don't confuse log emission with
log retention.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.