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 )


Is this documented somewhere (max length of WARN). ?
header_checks via cleanup dont seem to have any limit

For eg.


> MAIL FROM:<r...@netcore.co.in>
< 250 2.1.0 Ok
> RCPT TO:<r...@netcore.co.in>
< 250 2.1.5 Ok
> DATA
< 354 End data with <CR><LF>.<CR><LF>
> MIME-Version: 1.0
> Content-Disposition: inline
> Content-Transfer-Encoding: 8bit
> Content-Type: text/plain
> X-Mailer: MIME::Lite 3.027 (F2.77; T1.28; A2.04; B3.07_01; Q3.07)
> Subject: This is a long subject of mail from ram to test if smtp_header_checks is working fine for 1
> Message-Id: <t4hc4wc1s2v8.1294402...@netcore.co.in>
> To: r...@netcore.co.in
> Date: Fri, 07 Jan 2011 17:40:01 +0530
> From: r...@netcore.co.in
>
> This is a Test Mail
> Please Ignore
> .
< 250 2.0.0 Ok: queued as DE2CC49A3E
> QUIT
< 221 2.0.0 Bye

-----------------
But the logs dont have the complete subject



[...@darkstar ~]$ grep DE2CC49A3E /var/log/maillog
Jan 7 17:40:01 darkstar postfix/smtpd[5934]: DE2CC49A3E: client=darkstar.netcore.co.in[127.0.0.1] Jan 7 17:40:01 darkstar postfix/cleanup[5943]: DE2CC49A3E: message-id=<t4hc4wc1s2v8.1294402...@netcore.co.in> Jan 7 17:40:01 darkstar postfix/qmgr[5930]: DE2CC49A3E: from=<r...@netcore.co.in>, size=649, nrcpt=1 (queue active) Jan 7 17:40:02 darkstar postfix/smtp[5946]: DE2CC49A3E: warning: header Subject: This is a long subject of mail from ram to test if Jan 7 17:40:03 darkstar postfix/smtp[5946]: DE2CC49A3E: to=<r...@netcore.co.in>, relay=192.168.2.1[192.168.2.1]:25, delay=1.6, delays=0.08/0/0.01/1.5, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 9F46C6CE0261)
Jan  7 17:40:03 darkstar postfix/qmgr[5930]: DE2CC49A3E: removed
[...@darkstar ~]$











Reply via email to