ldap attribute "amavisLocal"

Tobias Hachmer lists at kokelnet.de
Thu Oct 11 22:17:49 CEST 2012


Hello list,

I have a question about the ldap attribute "amavisLocal". Yeah, I have 
read README.ldap:

############################################################################
Special handling of optional LDAP attribute 'amavisLocal'
---------------------------------------------------------

A special shorthand is provided when LDAP lookups are used: when a 
match
for a recipient address (or domain) is found in LDAP tables (regardless 
of
attribute values), the recipient is considered local, regardless of 
static
@local_domains_acl or %local_domains lookup tables. This simplifies
life when a large number of dynamically changing domains is hosted.

To overrule this behaviour, have an explicit boolean attribute 
'amavisLocal'
with a value of True returned for each local domain, and False for 
other
domains which might be present in LDAP for some reason, but are 
nonlocal.

In general LDAP lookups are similar to SQL lookups except for the low 
level
LDAP/SQL specific code. The overall functionality, lookup rules, etc. 
are
identical.
############################################################################

Am I understand this right when I say:

1. recipient address is considered local if it is found in ldap and the 
user object doesn't have the attribute amavisLocal at all ?
2. recipient address is considered local if it is found in ldap and the 
user object has the attribute amavisLocal, set to 'TRUE' ?
3. Assuming in ldap DIT are user objects with attribute amavisLocal, 
set to FALSE, e.g. for "bad at example.com". Is the recipient address for 
user object "foo at example.com", which either doens't have the attribute 
amavisLocal at all or set to TRUE considered local, is this independent?

Thanks in advance,
Tobias Hachmer


More information about the amavis-users mailing list