New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior about applicable conditions with clamav milter #39
Comments
Why Milter::Logger.message("stop: #{recipient}")
context["not-restricted"] = "true"
true return Anyway, the following patch may fix it: diff --git a/milter/manager/milter-manager-children.c b/milter/manager/milter-manager-children.c
index 2fc8773..1d964da 100644
--- a/milter/manager/milter-manager-children.c
+++ b/milter/manager/milter-manager-children.c
@@ -2152,7 +2152,6 @@ cb_stopped (MilterServerContext *context, gpointer user_data)
milter_server_context_quit(context);
break;
case MILTER_SERVER_CONTEXT_STATE_ENVELOPE_FROM:
- case MILTER_SERVER_CONTEXT_STATE_DATA:
compile_reply_status(children, state, MILTER_STATUS_ACCEPT);
cb_continue(context, user_data);
break;
@@ -2160,6 +2159,7 @@ cb_stopped (MilterServerContext *context, gpointer user_data)
milter_server_context_set_status(context, MILTER_STATUS_NOT_CHANGE);
cb_continue(context, user_data);
break;
+ case MILTER_SERVER_CONTEXT_STATE_DATA:
case MILTER_SERVER_CONTEXT_STATE_HEADER:
case MILTER_SERVER_CONTEXT_STATE_END_OF_HEADER:
case MILTER_SERVER_CONTEXT_STATE_BODY: We should test affected cases carefully before we apply the patch. |
See bundled applicable-conditions/restrict-accounts.conf:
I don't know why return
Maybe yes, see https://sourceforge.net/p/milter-manager/mailman/message/32312002/ |
I understand that you just did copy and paste. OK. I'll look at
He doesn't use neither |
Apply "Restrict Recipient" to milter-test-client
No Without applicable conditions:
|
Hmm...
Added x-hoge header. Why? |
I have tried patch in #39 (comment) |
Here are bug reports for the problem fixed by a939f22. Do they help you? https://twitter.com/kshiono/status/23619089243054080
https://twitter.com/kshiono/status/23619769819205632
https://twitter.com/kshiono/status/23620165203664897
https://twitter.com/kshiono/status/23621482491944960
|
Thanks!! It works well. |
milter-manager.local.conf:
(A) Enable (1) block
Expected result: Stop clamav-milter
Actual result: Do not stop clamav-milter and spent 7 seconds (reading timeout)
(B) Enable (2) block
Expected result: Stop clamav-milter
Actual result: Stop clamav-milter
(C) Enable (3) line but the avobe line is disabled
Enable bundled applicable condition "Restricted Accounts".
Expected result: Stop clamav-milter
Actual result: Do not stop clamav-milter
The text was updated successfully, but these errors were encountered: