um...

I have tried both 

[email protected] relay:[smtp.foo.com] 

and 

relay:[smtp.foo.com] 

as the the output of the ldap lookup and i just get

status=deferred (mail transport unavailable) error

Thanks





-- 
______________________ 
Adam Barnett 
Systems Engineer 
Double Negative 
160 Great Portland Street,W1W 5QA 
T: 020-7268-5000 
[ http://www.dneg.com/ | www.dneg.com ] 
______________________

----- Original Message -----
| From: "Wietse Venema" <[email protected]>
| To: "Postfix users" <[email protected]>
| Sent: Thursday, 19 September, 2019 14:51:52
| Subject: Re: transport map from ldap

| ab:
|> 
|> Wow lots of my post got cut off, this is what i wrote.
|> 
|> As you can see i am returning [email protected] 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
|> [email protected] 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

Reply via email to