We have a cyrus 2.4.12
on Debian, we use packages, rather than building each software ourselves.
I am getting the this "log" constantly, a lot of, various users, and 8-10 times per user request:
fetching user_deny.db entry for 'user123'
I have searched for it, but haven't found a real solution, there were some patches for 2.3.xx, but we don't want ot build it, we prefer to use packages.
Is there any solution to disable the user_deny.db
at all. We don't need this feature. It wastes the CPU as disk.
I would switch to
syslog-ng
and filter out this message by configuring:filter f_imapd { facility(local6) and level(debug) and not match("regexp" value("fetching user_deny.db entry for")); };
If you use syslog-ng, you can also try suppress identical messages with suppress configuration option:
In this example identical messages will be logged once per every 30 seconds
Seems the correct filter syntax is:
I found the following solution to the problem. Create a (new)
user_deny.db
from an (empty) flat file withcvt_cyrusdb
and the messages will disappear.https://www.cyrusimap.org/~vanmeeuwen/imap/admin/sop-userdeny.html
cyrus-imapd sends all levels of messages (debug, info, warnings, error), and cannot disconnect or change the level of messages. It's reported in bugzilla in 2011, but they don't seem to be interested in fixing it, so messages can't be disconnected. To remove them from the log, they can be intercepted from rsyslog.
To do it, create a file in /etc/rsyslog.d such as:
Add this to the file:
To finish restart rsyslog: