Roel van Meer:
> Hi,
> 
> while investigation unexpected bounces, I noticed that the unionmap did not  
> handle errors of submaps properly. If a submap generated an error, the  
> unionmap would not.

Cool. Can you also check how pipemap handles this case?

        Wietse

> I tested this with an LDAP map, where the LDAP server was *not* reachable.
> Configuring virtual_alias_maps as:
> 
>   virtual_alias_maps = ldap:/etc/postfix/ldap-virtual.cf
> 
> would result in '451 Temporary lookup failure', while configuring it as
> 
>   virtual_alias_maps = unionmap:{ldap:/etc/postfix/ldap-virtual.cf}
> 
> would result in '550 Recipient address rejected: User unknown in virtual  
> alias table'.
> 
> The attached patch fixes that, by making the unionmap return the first  
> error it gets from one of the submaps.
> 
> Thanks,
> 
> Roel

Content-Description: unionmap-error.patch

[ Attachment, skipping... ]

Reply via email to