January 1, 2009

 Adding AV scanned in Message-header

Question:We are using @Mail in the mail-server mode with the AV scanner. We'd like all incoming messages that are clean via the AV scanner to append a header "X-Virus-Scanned: Clean" to each message in the users mailbox.

Answer:This is possible by editing the transport router in Exim to append the new header for each incoming message.


To enable edit:

/usr/local/atmail/mailserver/configure

Locate the code below and add the lines in bold. This will append the new header for each message that is scanned via AV and sent to the users mailbox.

mysql_delivery_spamfolder:
driver = appendfile
maildir_format
#user = atmail
#group = atmail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
headers_add =  X-Virus-Scanned: Clean
# Return the quota in bytes from Kb in the Webadmin
quota =  ${lookup mysql{SELECT distinct CONCAT(UserQuota / 1024, "M") FROM Users WHERE Account='${local_part}@${domain}'}{$value}{7M}}
directory = ${lookup mysql{SELECT concat(MailDir, "/.Spam/") from Users where Account='${local_part}@${domain}'}}mysql_delivery:
driver = appendfile
maildir_format
#user = atmail
#group = atmail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
headers_add =  X-Virus-Scanned: Clean
# Return the quota in bytes from Kb in the Webadmin
quota =  ${lookup mysql{SELECT distinct CONCAT(UserQuota / 1024, "M") FROM Users WHERE Account='${local_part}@${domain}'}{$value}{7M}}
directory = ${lookup mysql{SELECT MailDir from Users where Account='${local_part}@${domain}'}}

Filed under: Anti-Virus — info @ 12:00 am

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment