The log didn't show anything happening every second, but looking through
the sourcecode I think I found the problem.

In server.c, in the StartServer(serverConfig_t * conf) function, the 2.0
branch code uses "db_connect()" to CHECK if the current connection is
still good.

This problem appears to have been fixed already by "paul" in revision 1768
in TRUNK to use the "db_check_connection()" function so I won't bother
filing a bug report.

Thanks for your help!

Mike


> set loglevel to 5 in /etc/dbmail.conf under imapd section and see what
> is triggering it..
>
> perhaps you have a bot trying to test some random password/user combo
> every second or so...if no one is connecting and dbmail is still
> triggering the db connects, get detailed logs and submit a bug report
>
> verify you are using 2.0.4 package...anything higher is
> unsupported/non-production and anything lower is not recommended due to
> the amount of bug fixed..
>
> Michael Milner wrote:
>> Hi,
>>
>> In my dbmail setup (dbmail2.0 debian sarge, postgresql) dbmail-imapd
>> connects and disconnects from the database twice every second.
>>
>> Is there any reason that this has to happen?  Shouldn't it only connect
>> when an imap client requests something?
>>
>> Do I have something set up wrong?
>>
>> Thanks,
>>
>> Mike
>>
>> _______________________________________________
>> Dbmail mailing list
>> Dbmail@dbmail.org
>> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> _______________________________________________
> Dbmail mailing list
> Dbmail@dbmail.org
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>
>


Reply via email to