Ok, my bad that does work in fact.
I had shut off smtpd -v in master.cf so I was not seeing the full LDAP queries.

However it will only validate the default domain even though I have more than 
one domain listed in relay_domains.
Is it picking this from mydomain setting in main.cf perhaps?
Or somewhere else?

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Noel Jones
Sent: Tuesday, January 05, 2016 2:33 PM
To: postfix-users@postfix.org
Subject: Re: ldap validate

On 1/5/2016 1:22 PM, Gomes, Rich wrote:
> Does this imply an actual list\map?
> 
> " and list the valid recipients in relay_recipient_maps"
> 

relay_recipient_maps = ldap:/path/to/file



> 
> I am looking to do real-time LDAP lookups.
> 
> The only time I get it to work is when using virtual mailbox domains 
> and maps
> 
> Not sure what I am missing here.
> Relaying is working great via relay domains and maps LDAP lookups, not 
> so much with that same config Only with virtual mailbox domains

You're using relay_domains and relay_recipient_maps.  Don't use any of the 
virtual_mailbox_* parameters.



  -- Noel Jones

Reply via email to