LDAP-Support in amavisd-new - missing placeholder %d

Mark Martinec Mark.Martinec+amavis at ijs.si
Wed Feb 1 19:12:48 CET 2012


> 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

or by setting $ldap_lookups_no_at_means_domain to true,
into a:

  user+foo at sub.example.com
  user at sub.example.com

A query filter template like:
gets expanded into an OR of all mail=%m comparisions, e.g.:

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.


More information about the amavis-users mailing list