[Dovecot] stats plugins causing dns lookup per connection

Axel Luttgens AxelLuttgens at swing.be
Tue Mar 12 15:58:51 EET 2013

Le 12 mars 2013 à 05:51, Kelsey Cummings a écrit :

> I noticed our imap servers were generating a lot of A record lookups for
> their own IP's the other day and just got around to tracking down the
> source.  Seems like they are all being caused by guid_128_generate() -
> perhaps the lookup could be cached at start up or it could just use make
> use of the hostname rather than spending the effort to get the IP via
> gethostbyname() calls.  The function is used in a few other places too,
> so this might help more than just the stats plugin.

Hello Kelsey,

This one:


started for seemingly unrelated reasons, but ended with some form of cacheing of the results fetched with gethostbyname().

Which version of Dovecot are you running?


More information about the dovecot mailing list