> On Oct 6, 2017, at 3:29 PM, phdam8 <[email protected]> wrote: > > > When Emails are sent, there is a custom application header that gets logged > in /var/log/maillog. However, my issue is that only the first 190 characters > are logged. The rest are truncated. I double-checked to make sure that the > header is present in the message the client receives, so it appears to be a > logging issue somewhere.
The truncation is intentional. The mail log is not an archive system. Sensible limits on the quantity of data logged are needed to reduce opportunities for DoS attacks. Postfix allows just short of 200 bytes for the logging of header data. https://github.com/vdukhovni/postfix/blob/master/postfix/src/cleanup/cleanup_message.c#L257 -- Viktor.
