Closed andre8244 closed 2 years ago
In nethesis-testing:
Test case
/usr/share/rspamd/lualib/lua_scanners/yomi.lua
and set hash_retransmits = 0
(https://github.com/nethesis/yomi-rspamd/blob/master/yomi.lua#L37) to simulate the issuesignal-event -j nethserver-yomi-update
to apply the changehead -c 100K < /dev/urandom > binary_file
)/var/log/maillog
: Maximum hash retransmits exceeded for <ATTACHMENT_NAME>, presuming attachment is clean
YOMI_UNKNOWN(0.00)[Maximum hash retransmits exceeded for <ATTACHMENT_NAME>, presuming attachment is clean]
hash_retransmits = 7
in yomi.lua
signal-event -j nethserver-yomi-update
to apply the changeTest passed successfully :+1:
Test passed successfully :+1:
Released: nethserver-yomi-2.2.0-1.ns7.noarch.rpm
In rare and currently unknown circumstances an email is never delivered because yomi plugin continuously reaches
Maximum hash retransmits exceeded
and performs a soft-reject.Proposed solution
This issue seems to happen with clean attachments only. Avoid soft-reject and mark the e-mail with
YOMI_UNKNOWN
whenMaximum hash retransmits exceeded
is reached