--On Friday, March 08, 2013 3:45 PM +0200 Geoff Shang
<ge...@quitelikely.com> wrote:
Hi,
Right now, Postfix is connecting to LDAP every time it needs to do one of
these lookups, then disconnects again. I thought that specifying
"proxy:" in the entry might deal with this, but it doesn't appear to have
done so.
My question is, is it possible to get proxymap to open a persistant
connection for LDAP to do relay_domain and relay_recipient lookups?
This is exactly what postfix does for our setup, using postfix 2.10.0.
Example connection from this morning:
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 fd=84 ACCEPT from
IP=X.X.X.X:53128 (IP=X.X.X.X:389)
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 op=0 EXT
oid=1.3.6.1.4.1.1466.20037
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 op=0 STARTTLS
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 op=0 RESULT oid= err=0
text=
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 fd=84 TLS established
tls_ssf=256 ssf=256
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 op=1 BIND
dn="uid=zmpostfix,cn=appaccts,cn=zimbra" method=128
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 op=1 BIND
dn="uid=zmpostfix,cn=appaccts,cn=zimbra" mech=SIMPLE ssf=0
Mar 8 08:01:49 ldap01-zcs slapd[7644]: conn=29791 op=1 RESULT tag=97 err=0
text=
[... lots of queries ...]
Mar 8 08:12:27 ldap01-zcs slapd[7644]: conn=29791 op=7801 SRCH
attr=zimbraMailCanonicalAddress zimbraMailCatchAllCanonicalAddress
Mar 8 08:12:27 ldap01-zcs slapd[7644]: conn=29791 op=7801 SEARCH RESULT
tag=101 err=0 nentries=0 text=
Mar 8 08:12:32 ldap01-zcs slapd[7644]: conn=29791 fd=84 closed (connection
lost)
Or as you can see, it stayed connected from 08:01:49 to 08:12:32, during
which time it performed 7,800 operations (all mail delivery lookups)
outside of the initial bind before disconnecting.
--Quanah
--
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration