Andrea wrote:

> I don't understand $final_virus_destiny, $warnvirussender and
> $warnvirusrecip.
> I will explain you.
> I set $final_virus_destiny=D_BOUNCE and the definition is:
> mail will not be delivered to its recipients, a non-delivery notification
> (bounce) will be sent to the sender by amavisd-new;

Yes, a bounce notice may be sent, but in reality most likely one will
not be sent because:

#Exception: bounce (DSN) will not be sent if a virus name matches
[EMAIL PROTECTED]

and the setting in the provided amavisd.conf includes *all* viruses
in @viruses_that_fake_sender_maps:

@viruses_that_fake_sender_maps = (new_RE(
# [qr'\bEICAR\b'i => 0],            # av test pattern name
# [qr'^(WM97|OF97|Joke\.)'i => 0],  # adjust names to match your AV scanner
  [qr/^/ => 1],  # true for everything else
));

> What happen if I put
> $warnvirussender=0 (will not the notify be sent to the sender ?)

0 = false , so nothing has changed here.

If $warnvirussender = 1; then the sender should be notified, but the
sender is probably faked, so this is not recommended because it causes
a lot of confusion for innocent senders who are probably not infected.
It looks like amavisd-new is smart enough to send a maximum of 1
notice to the sender when D_BOUNCE and warn*sender are both used.
It looks like $warnvirussender follows the same
rules as a bounce notice, so if the virus is included in
@viruses_that_fake_sender_maps the sender still will not get a notice.
It appears to me that setting $warnvirussender = 1; and
$final_virus_destiny = D_DISCARD; is not much different than setting
$final_virus_destiny = D_BOUNCE; by itself. No matter what the
$final_virus_destiny is set to, $warnvirussender is of limited use IMHO.

> and
> $warnvirusrecip=1 (will the notify be sent to the recipient ? (in the
> definition the notify should be sent only to the sender) )

Yes, a message will be sent to the (local) recipient notifying them that
someone tried to send them a virus. It will be worded differently from
the message the sender may get. If you wanted to notify recipients not
considered local using $warnvirusrecip, you would also have to set:

$warn_offsite = 1;     # (defaults to false (undef), i.e. only notify locals)

> thank
> Andrea

Gary V



-------------------------------------------------------
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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to