Hi Gary,

> Seba wrote:
> 
> > Hi,
> 
> > I want to use this setting im amavisd.conf to
> bypass
> > spam checks for outgoing eMails but it don't work.
> 
> > @bypass_spam_checks_maps =
> >       ( {map {$_ => !$local_domains{$_}} keys
> > %local_domains}, 1);
> 
> > My setting for local_domains is like
> 
> > @local_domains_maps =  # using ACL lookup table
> > #   ( [ ".$mydomain", 'sub.example.net',
> > '.example.com' ] );
> 
> Amavisd should not even start while that second line
> is commented out.
> 
> > With these settings the incoming emails are not
> > scanned for spam. If I run amavisd-debug I see
> that
> > the recipient is treated as local and that spam
> checks
> > are bypassed.
> 
> > As I understand spam checks should be bypassed if
> an
> > user from (for example) example.com send an email
> to
> > an user outside his own domain (AOL,Yahoo....) but
> > incoming eMails should be scanned (all what is not
> in
> > local_domains).
> 
> > Have I missed something?
> 
> > Regards,
> > Sebastian
> 
> The default for @local_domains_maps is:
>
@local_domains_maps=(\%local_domains,[EMAIL PROTECTED],\$local_domains_re);
> 
> which means if you assign something directly to it,
> whatever was in
> %local_domains is lost. Besides, you have not
> assigned anything to
> %local_domains and data in %local_domains is what
> the statement is
> looking for.
> 
> You should probably comment out @local_domains_maps
> (so the default
> is used) and set %local_domains directly:
> 
> %local_domains = ( '.example.com' => 1,
>                    'sub.example.net' => 1,
>                   );
> 
> or with read_hash:
> 
> read_hash(\%local_domains,
> '/etc/amavis/local_domains');
> 
> with the contents of /etc/amavis/local_domains:
> .example.com
> .sub.example.net
> 
> Gary V

thanks. I've commented out "@local_domains_maps" and
added my local domains to "%local_domains" directly.

Now I can use

@bypass_spam_checks_maps =
   ( {map {$_ => !$local_domains{$_}} keys
%local_domains}, 1);

and it works. It's not easy for me to understand what
are hash lookups, maps, acl lookups.... so I'm a bit
confused.

Thanks.

Regards,
Sebastian


      

-------------------------------------------------------------------------
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
[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/

Reply via email to