clamav-milter appends to message headers; should prepend

Bug #430431 reported by Stephen Warren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Binary package hint: clamav

clamav-milter adds the following headers to messages:

X-Virus-Scanned: clamav-milter 0.95.2 at severn.wwwdotorg.org
X-Virus-Status: Clean

which is great. However, these headers are appended to the set of headers in the message, rather than prepended. It'd be better if the new headers were prepended, so if the email gets routed through N servers, the clamav headers and "Received:" headers would intermingle in time order. This would better show where the message was virus-scanned.

Revision history for this message
Scott Kitterman (kitterman) wrote :

There is a sample config file shipped in the source package (apt-get source clamav) that shows the config option to do it this way. Have a look at that (yes, this could be better documented.

Revision history for this message
Stephen Warren (srwarren) wrote :

Since somebody emailed me asking if this had been resolved and how, here's the information, for them and for Google:

In /etc/clamav/clamav-milter.conf, add/modify this setting:

AddHeader Add

See /usr/share/doc/clamav-milter/examples/clamav-milter.conf for details.

I think the Ubuntu/Debian package should ship /etc/clamav/clamav-milter.conf with that line included. I'm not even sure why the milter code allows any other setting; by corollary with the Received: header, it doesn't make sense to use "AddHeader Replace", which is the code's default apparently.

Chuck Short (zulcss)
Changed in clamav (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.