Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Knuddi 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
-
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
-
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...
-
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.