Koozali.org: home of the SME Server

Changing "X-Virus-Checked" text in headers

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Changing "X-Virus-Checked" text in headers
« on: January 18, 2009, 05:11:34 PM »
Does anyone know how to alter the text added to the email when it has been scanned for Spam/Virus? I would like to change the domain name to servername.doman name as I have multiple servers scanning for the same domain.

Now:
X-Virus-Checked: Checked by ClamAV on swerts-knudsen.dk

Would like:
X-Virus-Checked: Checked by ClamAV on mail1.swerts-knudsen.dk

Any clues?

Rgds,
Jesper

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Changing "X-Virus-Checked" text in headers
« Reply #1 on: January 18, 2009, 06:43:09 PM »
Any clues?

You'll need (the correct SME Server way of course) to add some magic in this file:

/usr/share/qpsmtpd/plugins/virus/clamav
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: Changing "X-Virus-Checked" text in headers
« Reply #2 on: January 18, 2009, 08:30:39 PM »
Thanks - this one is going to be hard to make into templates. I will have to base the different parameter on a DB entry even though this file seems unmodified since 2006 :-(

I guess it will be a hard code...

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: Changing "X-Virus-Checked" text in headers
« Reply #3 on: January 18, 2009, 08:47:58 PM »
Actually it seem to be doable. I have created a template file in (not to mess with system templates):
/etc/e-smith/templates-custom/var/qmail/control/me

This file should just have one line:

{"$SystemName.$DomainName"}

Then expand templates
# expand-template /var/qmail/control/me

Seems to behave just fine in both directions and my headers gets updated.
« Last Edit: January 19, 2009, 01:16:09 PM by Knuddi »