On Fri, 7 Apr 2006, Stefan Jakobs wrote:
Ok, that's right. But on legal reasons I have to inform both, the recipient
and the sender, or nobody. In addition I use the notification as a service
for the users, but this doesn't make sense with mass mailing viruses.
With my old mail-server I used amavisd-new-2.2.0 and in this version amavis
send an email to both or nobody. It is possible to get this functionality
with amavisd-new.2.3 or 2.4?
just for completeness: Stefans wanted functionality was in
amavisd-new-2.2.0.
Marc: is there something similar in 2.{3-4}?
TIA,
Sascha.
--- amavisd-new-2.2.0/amavisd 2004-11-02 22:22:57.000000000 +0100
+++ /usr/local/sbin/amavisd 2004-11-03 09:06:35.000000000 +0100
@@ -7234,9 +7234,9 @@ sub do_virus($$) {
# $notification->purge;
}
-# if (! defined($msginfo->sender_contact) ) {
-# do_log(5,"do_virus: skip recipient notifications for unknown senders");
-# } else { # send notification to recipients
+ if (! defined($msginfo->sender_contact) ) {
+ do_log(5,"do_virus: skip recipient notifications for unknown senders");
+ } else { # send notification to recipients
my(@recips_to_notify) =
grep {
@virusname && !lookup(0,$_,@{ca('bypass_virus_checks_maps')}) ?
@@ -7279,7 +7279,7 @@ sub do_virus($$) {
}
# $notification->purge;
}
-# }
+ }
do_log(5, "DO_VIRUS - DONE");
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/