ab: > > Wow lots of my post got cut off, this is what i wrote. > > As you can see i am returning adamt...@foo.com relay:[smtp.foo.com] > But the mail log is saying transport map error > > > > Hi All. > > I would like the transport_maps to be driven from an ldap lookuop > but i am unsure of the format it should be returning > > I have the following config > > transport_maps = hash:/etc/postfix/transport > ldap:/etc/postfix/ldap-transport > and my /etc/postfix/ldap-transport.cf looks like this > > server_host = ldap://zimbra:389 > server_port = 389 > search_base = > query_filter = > (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s))(zimbraMailStatus=enabled)) > result_attribute = mail,zimbraMailAlias > version = 3 > result_format=%s relay:[smtp.foo.com] > start_tls = no > timeout = 30 > > This returns the output when doing a postmap vq > adamt...@foo.com relay:[smtp.foo.com] > but is that correct for a transport_map
The transport(5) manpage says: RESULT FORMAT The lookup result is of the form transport:nexthop. The transport field specifies a mail delivery transport such as smtp or local. The nexthop field specifies where and how to deliver mail. "relay:[smtp.foo.com]" is a valid result. More information in the manpage! Wietse