OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
postfix mangles MESSAGE-ID when passing to clamd

From: Arieh Skliarouk (skliariehgmail.com)
Date: Sun Jul 15 2007 - 09:46:35 CDT


Hello,

I am running clam-av on postfix. When there was some problem with email
checking, I went to log file and found that the MESSAGE-ID of email in
question was changed as it got to clam-av.

How can I make postfix not to change MESSAGE-ID (the same way as sendmail
does not change it)?
In the logs below, the email had Message-ID 15BC014F1, and when checked by
spamd, got new ID 92C152443.

Jul 15 04:18:41 lear postfix/smtpd[6710]: connect from
grpmail.jerusalemonline.com[212.150.209.225]
Jul 15 04:18:41 lear postfix/smtpd[6710]: 15BC014F1: client=
grpmail.jerusalemonline.com[212.150.209.225]
Jul 15 04:18:42 lear postfix/cleanup[14966]: 15BC014F1:
message-id=<3c9890a735b9
Jul 15 04:18:41 lear postfix/smtpd[6710]: 15BC014F1: client=
grpmail.jerusalemonline.com[212.150.209.225]
Jul 15 04:18:42 lear postfix/cleanup[14966]: 15BC014F1: message-id=<
3c9890a735b9341e0c1a2a8c001f3211jerusalemonline.com>
Jul 15 04:18:42 lear postfix/qmgr[17020]: 15BC014F1: from=<
mailjerusalemonline.com>, size=3980, nrcpt=1 (queue active)
Jul 15 04:18:42 lear postfix/smtpd[6710]: disconnect from
grpmail.jerusalemonline.com[212.150.209.225]
Jul 15 04:18:42 lear clamd[16313]: SelfCheck: Database status OK.
Jul 15 04:18:42 lear spamd[6672]: connection from localhost [127.0.0.1] at
port 46536
Jul 15 04:18:42 lear spamd[14988]: info: setuid to filter succeeded
Jul 15 04:18:42 lear spamd[14988]: processing message <
3c9890a735b9341e0c1a2a8c001f3211jerusalemonline.com> for filter:1002.
Jul 15 04:18:43 lear spamd[14988]: clean message (-2.2/10.0) for filter:1002
in 1.1 seconds, 4043 bytes.
Jul 15 04:18:43 lear postfix/pickup[29268]: 92C152443: uid=1002 from=<
mailjerusalemonline.com>
Jul 15 04:18:43 lear postfix/cleanup[14966]: 92C152443: message-id=<
3c9890a735b9341e0c1a2a8c001f3211jerusalemonline.com>
Jul 15 04:18:43 lear postfix/pipe[14967]: 15BC014F1: to=<elevinsonwbais.org>,
relay=filter, delay=2, status=sent (dummy)
Jul 15 04:18:43 lear postfix/qmgr[17020]: 15BC014F1: removed
Jul 15 04:18:43 lear postfix/qmgr[17020]: 92C152443: from=<
mailjerusalemonline.com>, size=4492, nrcpt=1 (queue active)
Jul 15 04:18:43 lear postfix/virtual[14996]: 92C152443: to=<
elevinsonwbais.org>, relay=virtual, delay=0, status=sent (delivered to
maildir)
Jul 15 04:18:43 lear postfix/qmgr[17020]: 92C152443: removed

--
Arieh