On 01/07/2011 06:25 PM, Wietse Venema wrote:
Ram:
I am using postfix smtp_header_checks  to log subjects of mails
I have enabled WARN inside smtp_header_checks
But If I send a mail with a long subject then the subject gets chopped
at some length (approx 50 chars )
Postfix truncates EVERYTHING, especially when it is logged. The
intention is to protect your file system against logfile flooding
attack.

        Wietse

That seems absolutely reasonable from a tech point of view.

Unfortunately people have designed business processes based on
reports of mails from applications that send mails.

If this  max_size_limit can be set to 100 chars then that should be enough.
Anyway these are app generated mails sending transaction receipt info inside the Subject. So there is no security issue of log flooding in this controlled environment.

I wont mind a recompile of postfix.
I was also wondering ... If there a truncation of subject logging via smtpd/cleanup too, Apparently there seems to be none.


Thanks
Ram




Reply via email to