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.: [email protected] [email protected] 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: [email protected] [email protected] 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
