On 1/4/2016 3:11 PM, Gomes, Rich wrote: > Ok, I have LDAP working in stream although still have a few bugs. > > I found this article: > > http://www.experts-exchange.com/questions/28251757/How-to-configure-LDAP-Authentication-for-Incoming-SMTP-Traffic.html > > > Basically I added these lines > > virtual_mailbox_domains = example.com, example.org, example.net > virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf > > to where I already had > virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf > > and it worked.
That's correct if you're using virtual_mailbox_domains, but not for relay_domains. > Is there a way to have Postfix DROP the message if the recipient is invalid? > As opposed to sending an NDR? Postfix will reject invalid recipients. Discarding invalid recipients is a terrible idea. -- Noel Jones