LDAP-Support in amavisd-new - missing placeholder %d
Mark Martinec
Mark.Martinec+amavis at ijs.si
Wed Feb 1 19:12:48 CET 2012
Werner,
> it seems lika as amavisd-new is not capable to use a domain placeholder
> like %d ? Is there a specific reason for it? How did you manage if you
> do use your own ldap-scheme.
There is a placeholder %m, which gets replaced by a complete
chain of a progressively stripped e-mail address, e.g.:
user+foo at sub.example.com
user at sub.example.com
user+foo
user
@sub.example.com
@.sub.example.com
@.example.com
@.com
@.
or by setting $ldap_lookups_no_at_means_domain to true,
into a:
user+foo at sub.example.com
user at sub.example.com
user+foo@
user@
sub.example.com
.sub.example.com
.example.com
.com
.
A query filter template like:
(&(objectClass=amavisAccount)(mail=%m))
gets expanded into an OR of all mail=%m comparisions, e.g.:
(&(objectClass=amavisAccount)(|(mail=v1)(mail=v2)...(mail=vn)))
So if you only have full domains listed in LDAP, then only domains
get compared, full email or subdomains will never be able to
match any domain name in a database.
Mark
More information about the amavis-users
mailing list