Hi Victor,

Thank you for diving into this topic.

Using a Milter is an option, but it often involves correlating information from 
both the milter process and the log for a comprehensive view. For example, 
capturing TLS details from both the smtp client process and smtpd pid, along 
with recipient information and specific Headers is crucial. The proposed 
configurable header key/value limit would simplyfy this process.

As far as I know, there are currently no other supported protocols for event 
streaming. Therefore, relying on syslog (nearly real-time) or reading logs from 
a file (with some delay) remains the most effective solution for obtaining 
delivery information.

Best regards,
Matthias Schneider 

----- Ursprüngliche Mail -----
Von: Viktor Dukhovni via Postfix-users <postfix-users@postfix.org>
An: postfix-users@postfix.org
Gesendet: Wed, 24 Jan 2024 16:38:05 +0100 (CET)
Betreff: [pfx] Re: Feature Request: Adjustable Header Log Size Limit in 
INFO/WARN/REJECT Header_Check

On Wed, Jan 24, 2024 at 03:10:03PM +0100, Matthias Schneider via Postfix-users 
wrote:

> Initially, I experimented with a Milter for logging the required
> headers, but I found that employing a larger %s printf value proved to
> be a more efficient solution. However, I'd like to point out that the
> default configuration for MaxMessageSize in rsyslog is often set to
> 8k, with the potential to increase it to 64k when using TCP.
> Therefore, the syslog aspect can handle larger messages effectively.

Why is syslog the right medium for accurate message header recording?
What sort of key/value pairs are you looking to extract from headers?

When ~2 decades ago I implemented header logging (actually MIME-skeleton
logging, that recorded also the header of all nested MIME parts), I
recorded the MIME skeletons of each message (separated by blank lines)
to a daily disk file.  Syslog was not a good vehicle for faithful
recording of message metadata.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to