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,
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,