[Exim/ClamAV] Scan mail in routers?

playah12

Verified User
Joined
Jan 9, 2009
Messages
5
hi,

i installed clamAV on Exim and added the lines :
av_scanner = clamd:127.0.0.1 3310

and in the check_message:
deny message = this message ....
demime = *
malware = *
accept

now this seems to scan all mail, but I would like to scan only the mails for some domains.
E.G. for spamassissin I did:

#first router in list
spamassassin_router:
driver = accept
transport = spamassassin
domains = +spamgateway_domains
condition = "${if !eq {$received_protocol}{sa-checked} {1} {0}}"
no_verify
no_expn

spamassassin:
driver = pipe
command = /usr/sbin/exim -oMr sa-checked -bS
current_directory = "/tmp"
group = mail
home_directory = "/tmp"
log_output
message_prefix =
message_suffix =
return_fail_output
no_return_path_add
transport_filter = /usr/bin/spamc -f
use_bsmtp
user = mail

Is it possible for clamav to use this in a router like this?

thanks,
 
The way to do this is already built into the newest RC of my SpamBlocker-powered exim.conf file found here. You use a file called /etc/virtual/skip_av_domains
for domains you'd rather not be using ClamAV.

See my file (above) and either switch to it, or get some good ideas.

Jeff
 
Back
Top