Skip to content

Commit

Permalink
Add "sieve" to service monitoring and callback filtering
Browse files Browse the repository at this point in the history
The "sieve" service has been added to the list of services monitored in the "monitoring.lua" script. Consequently, the conditional statement in the "callback.lua" script was updated to include the "sieve" service category. This ensures that the sieve service is appropriately tracked and managed.

Signed-off-by: Christian Roessner <c@roessner.co>
  • Loading branch information
Christian Roessner committed Jul 12, 2024
1 parent efe974a commit 05f7e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/lua-plugins.d/callback/callback.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function nauthilus_run_callback()
end
end

if result.category == "service:imap" or result.category == "service:pop3" or result.category == "service:lmtp" then
if result.category == "service:imap" or result.category == "service:pop3" or result.category == "service:lmtp" or result.category == "service:sieve" then
if result.dovecot_session ~= "unknown" then
---@type string redis_key
local redis_key = "ntc:DS:" .. crypto.md5(result.user)
Expand Down
1 change: 1 addition & 0 deletions server/lua-plugins.d/filters/monitoring.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local wanted_protocols = {
[4] = "pop3s",
[5] = "lmtp",
[6] = "lmtps",
[7] = "sieve", -- Not sure about this
}

---@param request table
Expand Down

0 comments on commit 05f7e5f

Please sign in to comment.