Discussion:
[AMaViS-user] Costumize notification settings
(too old to reply)
Jens Strohschnitter
2007-04-12 12:40:50 UTC
Permalink
Hi list,

I want to costumize the notification on amavisd-new-2.4.4
with the following settings:

- Banned-Files: Notify only sender (not recipient, not admin)
- Virusmails: Notify only admin
- All other notification should be disabled (SPAM ...)

How do I have to costumize my amavisd.conf to let it work so ?

My actual amavisd.conf for notification looks like:

[...]
$warnvirussender = undef;
$warnspamsender = undef;
$warnbannedsender = 1;
$warnbadhsender = undef;
$warn_offsite = undef;
$warnvirusrecip = undef;
$warnbannedrecip = undef;
$warnbadhrecip = undef;

$virus_admin = "virusalert\@$mydomain"; # notifications recip.

$mailfrom_notify_admin = "virusalert\@$mydomain"; # notifications sender
$mailfrom_notify_recip = "virusalert\@$mydomain"; # notifications sender
$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef

@addr_extension_virus_maps = ('virus');
@addr_extension_spam_maps = ('spam');
@addr_extension_banned_maps = ('banned');
@addr_extension_bad_header_maps = ('badh');
[...]


Thx for all replies ...
--
Regards,

Jens Strohschnitter

-------------------------------------
*!!!LINUX LINUX LINUX LINUX LINUX!!!*

* http://www.jens-strohschnitter.de *
-------------------------------------
Set the controls for
the heart of the sun
-------------------------------------
__________________________________________________________

Raiffeisen Waren-Zentrale Rhein-Main eG
50668 Koeln, Altenberger Str. 1a

Tel: 0221/1638-0
Fax: 0221/1638-254

Sitz: Koeln

Amtsgericht Koeln, GnR 728

Vorstand:
Hans-Josef Hilgers (Sprecher)
Markus Stuettgen
Dr. Karl-Heinrich Suemmermann
Friedhelm Decker (Vorsitzender)
Ingo Steitz

Vorsitzender des Aufsichtsrates:
Peter Bleser (MdB)

St.Nr.: 215/5938/0152

Bankverbindung:
WGZ Bank AG, Duesseldorf
(BLZ 300 600 10) Konto-Nr.: 300 011



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@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/
Gary V
2007-04-12 14:11:09 UTC
Permalink
Post by Jens Strohschnitter
Hi list,
I want to costumize the notification on amavisd-new-2.4.4
- Banned-Files: Notify only sender (not recipient, not admin)
- Virusmails: Notify only admin
- All other notification should be disabled (SPAM ...)
How do I have to costumize my amavisd.conf to let it work so ?
[...]
$warnvirussender = undef;
$warnspamsender = undef;
$warnbannedsender = 1;
$warnbadhsender = undef;
$warn_offsite = undef;
$warnvirusrecip = undef;
$warnbannedrecip = undef;
$warnbadhrecip = undef;
You can simply leave these at their default (undef) value:
# $warnvirussender = undef;
# $warnspamsender = undef;
# $warnbannedsender = 1;
# $warnbadhsender = undef;
# $warn_offsite = undef;
# $warnvirusrecip = undef;
# $warnbannedrecip = undef;
# $warnbadhrecip = undef;
Post by Jens Strohschnitter
$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef
@addr_extension_virus_maps = ('virus');
@addr_extension_spam_maps = ('spam');
@addr_extension_banned_maps = ('banned');
@addr_extension_bad_header_maps = ('badh');
[...]
This has to do with address extensions (user+***@example.com), not
notifications.
Post by Jens Strohschnitter
Thx for all replies ...
# D_DISCARD mail will not be delivered to its recipients, sender will NOT be
# notified. Effectively we lose mail (but will be quarantined
# unless disabled). Losing mail is not decent for a mailer,
# but might be desired.

# D_BOUNCE mail will not be delivered to its recipients, a non-delivery
# notification (bounce) will be sent to the sender by amavisd-new;
# Exception: bounce (DSN) will not be sent if a virus name matches
# @viruses_that_fake_sender_maps, or to messages from mailing lists
# (Precedence: bulk|list|junk), or for spam level that exceeds
# the $sa_dsn_cutoff_level.

To disable notifications to virus sender:
$final_virus_destiny = D_DISCARD;

To enable notifications to banned sender:
$final_banned_destiny = D_BOUNCE;

If you mark and pass spam:
$final_spam_destiny = D_PASS;

otherwise:
$final_spam_destiny = D_DISCARD;

you can probably leave this at:
$final_bad_header_destiny = D_PASS;

Gary V



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@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/
Jens Strohschnitter
2007-04-13 10:23:07 UTC
Permalink
Post by Gary V
Post by Jens Strohschnitter
I want to costumize the notification on amavisd-new-2.4.4
- Banned-Files: Notify only sender (not recipient, not admin)
- Virusmails: Notify only admin
- All other notification should be disabled (SPAM ...)
How do I have to costumize my amavisd.conf to let it work so ?
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
$final_spam_destiny = D_DISCARD;
$final_bad_header_destiny = D_PASS;
Hi

Thanx for your reply.

I have set as you have written the following settings:

[...]
$warnvirussender = undef;
$warnspamsender = undef;
$warnbannedsender = 1;
$warnbadhsender = undef;
$warn_offsite = undef;
$warnvirusrecip = undef;
$warnbannedrecip = undef;
$warnbadhrecip = undef;

$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
## $final_bad_header_destiny = D_PASS;
[...]

But when I send a message with a blacklisted extension
like .msi, the message was blocked, but the sender does
not have any infomail about it in the mailbox :-(

Also a virus-rejected mail is blocked, but the admin
is not informed about the blocked mail.

In the logs of my MTA there is no entry about a reply
or mail to virusalert.
--
Regards,

Jens Strohschnitter

-------------------------------------
*!!!LINUX LINUX LINUX LINUX LINUX!!!*

* http://www.jens-strohschnitter.de *
-------------------------------------
Set the controls for
the heart of the sun
-------------------------------------
__________________________________________________________

Raiffeisen Waren-Zentrale Rhein-Main eG
50668 Koeln, Altenberger Str. 1a

Tel: 0221/1638-0
Fax: 0221/1638-254

Sitz: Koeln

Amtsgericht Koeln, GnR 728

Vorstand:
Hans-Josef Hilgers (Sprecher)
Markus Stuettgen
Dr. Karl-Heinrich Suemmermann
Friedhelm Decker (Vorsitzender)
Ingo Steitz

Vorsitzender des Aufsichtsrates:
Peter Bleser (MdB)

St.Nr.: 215/5938/0152

Bankverbindung:
WGZ Bank AG, Duesseldorf
(BLZ 300 600 10) Konto-Nr.: 300 011



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@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/
Gary V
2007-04-13 13:50:59 UTC
Permalink
Post by Jens Strohschnitter
Post by Gary V
Post by Jens Strohschnitter
I want to costumize the notification on amavisd-new-2.4.4
- Banned-Files: Notify only sender (not recipient, not admin)
- Virusmails: Notify only admin
- All other notification should be disabled (SPAM ...)
How do I have to costumize my amavisd.conf to let it work so ?
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
$final_spam_destiny = D_DISCARD;
$final_bad_header_destiny = D_PASS;
Hi
Thanx for your reply.
[...]
$warnvirussender = undef;
$warnspamsender = undef;
$warnbannedsender = 1;
$warnbadhsender = undef;
$warn_offsite = undef;
$warnvirusrecip = undef;
$warnbannedrecip = undef;
$warnbadhrecip = undef;
Actually, I said you could comment all of those out. You can leave
them all at the default value (undef). It's not necessary to
$warnbannedsender = 1; when you are set to bounce banned files.
Post by Jens Strohschnitter
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
## $final_bad_header_destiny = D_PASS;
[...]
But when I send a message with a blacklisted extension
like .msi, the message was blocked, but the sender does
not have any infomail about it in the mailbox :-(
Also a virus-rejected mail is blocked, but the admin
is not informed about the blocked mail.
In the logs of my MTA there is no entry about a reply
or mail to virusalert.
What MTA are you using and how are you connecting to it (milter,
after-queue filter, before-queue filter, dual sendmail)? There have
been cases where the notifications are fed back through amavis and
subsequently marked as spam.

The next step would be to *temporarily* raise $log_level to 5
and send the two test messages again. The log with the amavis data
should show if a notification is created (in the case of virus) or if
a bounce notice is created (in the case of a banned file) or if there
is some reason they were not created.

Gary V



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@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/
Jens Strohschnitter
2007-04-13 14:25:33 UTC
Permalink
Post by Gary V
Post by Jens Strohschnitter
Post by Gary V
Post by Jens Strohschnitter
I want to costumize the notification on amavisd-new-2.4.4
- Banned-Files: Notify only sender (not recipient, not admin)
- Virusmails: Notify only admin
- All other notification should be disabled (SPAM ...)
How do I have to costumize my amavisd.conf to let it work so ?
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
$final_spam_destiny = D_DISCARD;
$final_bad_header_destiny = D_PASS;
Hi
Thanx for your reply.
[...]
$warnvirussender = undef;
$warnspamsender = undef;
$warnbannedsender = 1;
$warnbadhsender = undef;
$warn_offsite = undef;
$warnvirusrecip = undef;
$warnbannedrecip = undef;
$warnbadhrecip = undef;
Actually, I said you could comment all of those out. You can leave
them all at the default value (undef). It's not necessary to
$warnbannedsender = 1; when you are set to bounce banned files.
Post by Jens Strohschnitter
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
## $final_bad_header_destiny = D_PASS;
[...]
But when I send a message with a blacklisted extension
like .msi, the message was blocked, but the sender does
not have any infomail about it in the mailbox :-(
Also a virus-rejected mail is blocked, but the admin
is not informed about the blocked mail.
In the logs of my MTA there is no entry about a reply
or mail to virusalert.
Hi

ok my mistake - I have set $warnbannedsender to undef
like you have written before and set

$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
## $final_bad_header_destiny = D_PASS;

like you said and ***YEP*** it works. THX !!!
--
Regards,

Jens Strohschnitter

-------------------------------------
*!!!LINUX LINUX LINUX LINUX LINUX!!!*

* http://www.jens-strohschnitter.de *
-------------------------------------
Set the controls for
the heart of the sun
-------------------------------------
__________________________________________________________

Raiffeisen Waren-Zentrale Rhein-Main eG
50668 Koeln, Altenberger Str. 1a

Tel: 0221/1638-0
Fax: 0221/1638-254

Sitz: Koeln

Amtsgericht Koeln, GnR 728

Vorstand:
Hans-Josef Hilgers (Sprecher)
Markus Stuettgen
Dr. Karl-Heinrich Suemmermann
Friedhelm Decker (Vorsitzender)
Ingo Steitz

Vorsitzender des Aufsichtsrates:
Peter Bleser (MdB)

St.Nr.: 215/5938/0152

Bankverbindung:
WGZ Bank AG, Duesseldorf
(BLZ 300 600 10) Konto-Nr.: 300 011



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@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/
Loading...