[exim] "add_header" Modifier and Long Incoming Header Lines

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Martin Nicholas
Dátum:  
Címzett: exim-users
Tárgy: [exim] "add_header" Modifier and Long Incoming Header Lines
I use this line in my ACL config to add a header for our internal use:
add_header = X-tvScience-SendingHost: $sender_host_address $acl_c_ht $acl_c_cc

Recently a mail thus processed and forwarded was rejected by Gmail:
550-5.7.1 [77.74.196.254      11] Our system has detected that this message is
550-5.7.1 not RFC 2822 compliant. To reduce the amount of spam sent to Gmail,
550-5.7.1 this message has been blocked. Please review
550 5.7.1 RFC 2822 specifications for more information. un7si4022492wjc.70 - gsmtp


Upon investigation I found this in the headers:
X-CTCH-Spam: =?utf-8?B?VW5rbm93bm4xNzUscnVsZXM9TEVPX09CRlVfU1VCSl9SRSwgX19CT1VOQ0VfQ0hBTExFTkdFX1NVQkosIF9fQk9VTkNFX05EUl9TVUJKX0VYRU1QVCwgX19IQVNfRlJPTSwgX19QSElTSF9GUk9NMiwgX19GUkFVRF9XRUJNQUlMX0ZST00sIF9fQ1QsIF9fQ1RZUEVfTVVMVE
lQQVJUX0FMVCwgX19DVFlQRV9IQVNfQk9VTkRBUlksIF9fQ1RZUEVfTVVMVElQQVJULCBDVFlQRV9NVUxUSVBBUlRfTk9fUVVPVEUsIF9fSEFTX1hfTUFJTEVSLCBfX0lOX1JFUF9UTywgX19IQVNfTVNHSUQsIF9fU0FORV9NU0dJRCwgX19NU0dJRF9BUFBMRU1BSUwsIF9fVE9fTUFMRk9STUVEXzIsIF9
fQ1RFLCBfX01JTUVfVkVSU0lPTiwgTUlNRV9MT1dFUl9DQVNFLCBfX0FOWV9VUkksIF9fVVJJX05PX1BBVEgsIF9fU1RPQ0tfUEhSQVNFXzI0LCBfX1NUT0NLX1BIUkFTRV82LCBfX1NVQkpfQUxQSEFfTkVHQVRFLCBfX0lOVF9QUk9EX0xPQywgX19ISUdIQklUUywgU1VQRVJMT05HX0xJTkUsIF9fRk9S
V0FSREVEX01TRywgX19IQVNfSFRNTCwgQk9EWVRFWFRQX1NJWkVfMzAwMF9MRVNTLCBCT0RZX1NJWkVfMzAwMF8zOTk5LCBCT0RZVEVYVEhfU0laRV8xMDAwMF9MRVNTLCBfX01JTUVfSFRNTCwgX19UQUdfRVhJU1RTX0hUTUwsIF9fU1RZTEVfUkFUV0FSRV9ORUcsIF9fUkROU19QT09MRURfNywgX19SR
E5TX0JST0FEQkFORF8zLCBfX1VSSV9OUywgU1hMX0lQX0RZTkFNSUNbMTc1LjIxNC4yMDcuOTAuZnVyXSw
X-tvScience-SendingHost: 65.20.0.122 smtpout02.bt.lon5.cpcloud.co.uk us

gSFRNTF81MF83MCwgQk9EWV9TSVpFXzUwMDBfTEVTUywgUkROU19CUk9BREJBTkQsIFJETlNfUE9PTEVELCBSRE5TX1NVU1BfU1BFQ0lGSUMsIF9fUEhJU0hfRlJPTSwgUkROU19TVVNQLCBfX0ZSQVVEX1dFQk1BSUwsIEJPRFlfU0laRV83MDAwX0xFU1MHA8AB?=
X-Junkmail-Premium-Raw: ...

Looks to me like the "X-CTCH-Spam:" was once a very long header line, a _single_ line indeed,
which has been molested by exim and in so doing has pushed the subsequent headers into
the body of the mail by adding a blank line. The required "Date:" & "From:" headers are now missing
from the mail which possibly caused Gmail to reject it.

I have added ":at_start:" as a possible work around for this. Would that work in the interim?

--
Regards,

Martin Nicholas.

E-mail: reply-2013@???