Christian,

> I have one question left open with using amavis bound to ldap:
> I do not have a @local_domains_maps, because amavisLocal is used in the
> ldap-objects of any user. If I understood it correctly, the policy bank
> MYUSERS is only used, if the domain was found in this map which I do not
> have.

Not really. The @local_domains_maps list implicitly gets LDAP or SQL
lookups prepended. So it makes no difference whether LDAP's amavisLocal
or a statical lookup table provides a result, both are threated the
same, i.e. it is just a result from @local_domains_maps.

So this is not the reason why loading of MYUSERS does not work.

> Just tested my setup with a static @local_domains_maps, if the MYUSERS
> is being used, but unfortunately even this does not activate the policy
> bank.
>
> I have googled around and found information that originating must be set
> to have this policy-bank activated. But how can I do this?

Indeed. 

amavisd-new-2.6.0 release notes :

- an additional requirement for loading a policy bank 'MYUSERS' is that
  'originating' flag must be on, which typically means that mail must
  be coming from internal networks or from authenticated roaming users
  to be able to load a policy bank 'MYUSERS';


So, the 'originating' flag must be set. It can be set implicitly
through @mynetworks, which you said you have at:

@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );

or it can be set explicitly, typically through some policy bank
triggered by MTA when it sees an authenticated roaming user.

See release notes, search for:

- policy banks now contain a new key 'originating', which generalizes
  a previously hard-wired policy bank MYNETS. It is a boolean ...


So, in your tests, was a message not submitted from one of the
networks listed in your @mynetworks list?

A main logging entry shows 'LOCAL' (through a macro %l)
when a message had 'originating' flag turned on, e.g.:

Passed CLEAN, MYNETS LOCAL [...]
                     ^^^^^


  Mark




------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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