[pmg-devel] Spam scanning after virus is found
Dietmar Maurer
dietmar at proxmox.com
Tue Apr 17 13:16:06 CEST 2018
> No, it's just a simple test with one receiver.
>
> I've read the code of Spam.pm (analyze_spam sub)
Rule matching is done in pmg-api/bin/pmg-smtp-filter, the
method is called apply_rules():
sub apply_rules {
my ($self, $queue, $msginfo, $entity, $ldap) = @_;
...
But it seems wrong to me to skip all rules only because we found a virus.
It would be possible to skip SPAM detection if we found a virus
($queue->{vinfo})
in analyze_spam(), but it may result in interesting info. So I am not sure
if we really want to skip that?
More information about the pmg-devel
mailing list