Re: [AMaViS-user] How to get a bounce for local users with "trustable" sender addresses?

This is a discussion on Re: [AMaViS-user] How to get a bounce for local users with "trustable" sender addresses? within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; On Friday 08 April 2005 14:01, Steffen Hansen wrote: > Hi. Replying to myself here -- I got it working :) ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2005
Steffen Hansen
 
Posts: n/a
Default Re: [AMaViS-user] How to get a bounce for local users with "trustable" sender addresses?

On Friday 08 April 2005 14:01, Steffen Hansen wrote:
> Hi.


Replying to myself here -- I got it working :)

I would like to understand why I had trouble to make it work, so am I=20
right in the following assumptions:

It seems that setting=20
$viruses_that_fake_sender_re/@viruses_that_fake_sender_maps to undef=20
was a bad idea. This seems to set the variables to the default built-in=20
values instead of empty as I would like it.

Another thing is that is seems that only "new-style" variable (*_maps)=20
can be overridden with a policy_bank. "old-style" variables makes the=20
policy_bank issue a warning in the log and the not modify anything.

My config is now:

$final_virus_destiny =3D D_DISCARD;
$final_banned_destiny =3D D_DISCARD;
$warnvirusrecip =3D 1;
$warnbannedrecip =3D 1;
$viruses_that_fake_sender_re =3D new_RE();
@viruses_that_fake_sender_maps =3D ();
=2E..
@mynetworks =3D qw( 127.0.0.0/24 );
=2E..
$policy_bank{'MYUSERS'} =3D { # mail from authenticated users on this=20
system
# Bounce only to local users
final_virus_destiny =3D> D_BOUNCE,
final_banned_destiny =3D> D_BOUNCE,
warnvirusrecip_maps =3D> undef, # (defaults to false (undef))
warnbannedrecip_maps =3D> undef,# (defaults to false (undef))
warnvirussender =3D> 1,
warnbannedsender =3D> 1,
mynetworks =3D> qw(0.0.0.0/0),
};


> The relevant parts of amavisd.conf are:
>
> # Since we only bounce to internal users with trusted addresses,
> # we'll leave this empty
> $viruses_that_fake_sender_re =3D undef;
>
> $final_virus_destiny =3D D_DISCARD; # (defaults to D_BOUNCE)
> $final_banned_destiny =3D D_DISCARD; # (defaults to D_BOUNCE)
> $warnvirusrecip =3D 1; # (defaults to false (undef))
> $warnbannedrecip =3D 1; # (defaults to false (undef))
>
> @mynetworks =3D qw(127.0.0.0/24);
>
> $policy_bank{'MYUSERS'} =3D { # mail from authenticated users on this
> system
> # Bounce only to local users
> final_virus_destiny =3D> D_BOUNCE,
> final_banned_destiny =3D> D_BOUNCE,
> warnvirusrecip =3D> undef, # (defaults to false (undef))
> warnvirusrecip_maps =3D> undef, # (defaults to false (undef))
> warnbannedrecip =3D> undef, # (defaults to false (undef))
> warnbannedrecip_maps =3D> undef,# (defaults to false (undef))
> warnvirussender =3D> 1,
> warnbannedsender =3D> 1,
> mynetworks =3D> qw(0.0.0.0/0), # myusers can send from anywhere,
> # they are authenticated
> };
>
> I can see in the log that my policy_bank kicks in, but still I don't
> get my bounce:
>
> Apr 8 13:46:08 auriga /kolab/sbin/amavisd[14552]: (14552-03) NOTICE:
> Not sending DSN to believed-to-be-faked sender
> <steffen.hansen@auriga.hrhansen.dk>, mail containing VIRUS & BANNED
> intentionally dropped
>
> Any idea what I am doing wrong?
>
> thanks


=2D-=20
Steffen Hansen | Klar=E4lvdalens Datakonsult AB
Senior Software Engineer| http://www.klaralvdalens-datakonsult.se
|
| Platform-independent
| software solutions



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0