-
-
Notifications
You must be signed in to change notification settings - Fork 460
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
Antispam feature add header and rewrite_subject does not work #1275
Comments
Does the following patch resolve the issue? diff --git a/lib/Froxlor/Cron/Mail/Rspamd.php b/lib/Froxlor/Cron/Mail/Rspamd.php
index ece47766..624e91dd 100644
--- a/lib/Froxlor/Cron/Mail/Rspamd.php
+++ b/lib/Froxlor/Cron/Mail/Rspamd.php
@@ -185,7 +185,7 @@ class Rspamd
$this->frx_settings_file .= ' apply {' . "\n";
$this->frx_settings_file .= ' actions {' . "\n";
$this->frx_settings_file .= ' "add header" = ' . $email['spam_tag_level'] . ';' . "\n";
- $this->frx_settings_file .= ' rewrite_subject = ' . $email['spam_tag_level'] . ';' . "\n";
+ $this->frx_settings_file .= ' rewrite_subject = ' . ($email['spam_tag_level'] + 0.01) . ';' . "\n";
$this->frx_settings_file .= ' reject = ' . $email['spam_kill_level'] . ';' . "\n";
if ($type == 'rcpt' && (int)$email['policy_greylist'] == 0) {
$this->frx_settings_file .= ' greylist = null;' . "\n"; |
The only change I see is the green line. Have changed it in the Rspamd.php, but no changes in froxlor_settings.conf. |
Well you need to force regeneration of the config files... |
I did the job froxlor-cron-with-debug, but with bin/froxlor-cli froxlor:cron -fd it has changed now. |
As a rule of thumb: before reporting an issue
Describe the bug
The add header value and rewrite_subject are the same. This does not work. In this case only the add header will be performed.
The settings must be different.
Example:
add header = 6.9;
rewrite_subject = 7;
In Froxlor is only one setting in database configurable.
Please change it to different values, than it will work.
System information
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Logfiles
If applicable, add log-entries to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: