Re: test address expansion with LDAP mapping
On 11/3/2016 1:12 PM, Stephen Ingram wrote: > I found a way to test the expansion of normal .db maps: > > postmap -q testuser 'postconf -h virtual_alias_maps' > > however, it doesn't seem to work with LDAP maps. Is there a way to > test those as well? > > Steve Yes, it works with LDAP maps. What kind of error are you getting? Make sure to use the ` back-tick character. Your above example shows ' single quotes; not the same! If your virtual_alias_maps entry contains some kind of $redirection, eg. virtual_alias_maps = $maptype:$mapdir/virtual.cf you'll have to expand the $stuff by hand. -- Noel Jones
Re: test address expansion with LDAP mapping
On Nov 03, 2016, at 14.12, Stephen Ingramwrote: > > I found a way to test the expansion of normal .db maps: > > postmap -q testuser 'postconf -h virtual_alias_maps' > > however, it doesn't seem to work with LDAP maps. Is there a way to test those > as well? it's worked as documented for me, as long as i can remember. consult the following reference material included with the software: postmap(1) ldap_table(5) LDAP_README wherein syntax and multiple literal examples are provided. beyond that, share actual input and output of the command[s] you are running, as well as the contents of your lookup map file. obfuscate any credentials. -ben
test address expansion with LDAP mapping
I found a way to test the expansion of normal .db maps: postmap -q testuser 'postconf -h virtual_alias_maps' however, it doesn't seem to work with LDAP maps. Is there a way to test those as well? Steve