amavis ldap trouble in process_request do_search
Quanah Gibson-Mount
quanah at zimbra.com
Fri Apr 5 20:29:12 CEST 2013
--On Friday, April 05, 2013 8:16 PM +0200 Mark Martinec
<Mark.Martinec+amavis at ijs.si> wrote:
> Such low mail rate could be the reason for persistent LDAP sessions
> to time out. The default is to use persistent SQL and LDAP sessions:
>
> $database_sessions_persistent = 1; # keep SQL & LDAP sessions open when
> idle
>
> Starting with 2.8.0 this can be turned off:
>
> $database_sessions_persistent = 0;
See also my work on Net::LDAP. The newest releases allow turning on
keepalive (default 2 hours). I also have a patch for it that, if you are
on linux, allows tweaking the keepalive parameters for the Net::LDAP
connection so that you can send keepalive probes much more often than those
2 hours.
In addition, I started a thread a while back about bugs in Amavis where it
does not properly handle certain error conditions with persistent
connections, causing it to not retry connections when it should. I believe
I supplied a recommended patch for that as well. ;)
--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
More information about the amavis-users
mailing list