Skip to content

activate iterate_query for doveadm

magenbrot requested to merge magenbrot/ispconfig3:master into master

This patch will activate the iterate_query to make doveadm work. I just tested it with a fresh ISPConfig install on Debian Stretch.

doveadm is a useful tool as it provides various commands like indexing (if you enable the solr full text search) or expunging old mails from the Junk folder.

Without iterate_query:

# doveadm search -A mailbox Junk
Error: User listing returned failure
doveadm: Error: Failed to iterate through some users

With iterate_query:

# doveadm search -A mailbox Junk
mailbox@server.de bd4486287ea87955960900007ce15446 3265
mailbox@server.de bd4486287ea87955960900007ce15446 3266

This is my crontab entry for expunging mails older than 4 weeks from Junk folder:

1 6 * * *    root doveadm expunge -A mailbox Junk SENTBEFORE 4w && doveadm purge -A

Merge request reports