Wietse Venema: > Then I suspect that the code reaches the 10000 limit because > there are ~10000 files in the queue. .... > Below is a patch that should fix this.
Thank you for the patch. I had previously said that we were not running 'showq' or 'postqueue -p' frequently, but upon further investigation found out that the prometheus exporter was in fact running 'showq' or accessing via showq socket every 15 seconds. Stopping the exporter fixed the issue. Would your suggestion be to; - not run 'showq' or 'postqueue -p' (and hence a metrics exporter like this) on a busy server like this at all - run it but run it less frequently on normal non-patched postfix - run it less frequently and also apply the patch you had sent Thank you -- Mehmet