Merge pull request #610 from mkuron/rspamd-header
Rspamd user settings: fix matching From headermaster
commit
6d86813330
|
@ -191,8 +191,8 @@ while ($row = array_shift($rows)) {
|
|||
$grouped_lists = $stmt->fetchAll(PDO::FETCH_COLUMN);
|
||||
$value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0])));
|
||||
?>
|
||||
request_header = {
|
||||
"From" = "(<?=$value_sane;?>)";
|
||||
header = {
|
||||
"From" = "/(<?=$value_sane;?>)/i";
|
||||
}
|
||||
<?php
|
||||
if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
|
||||
|
@ -283,8 +283,8 @@ while ($row = array_shift($rows)) {
|
|||
$grouped_lists = $stmt->fetchAll(PDO::FETCH_COLUMN);
|
||||
$value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0])));
|
||||
?>
|
||||
request_header = {
|
||||
"From" = "(<?=$value_sane;?>)";
|
||||
header = {
|
||||
"From" = "/(<?=$value_sane;?>)/i";
|
||||
}
|
||||
<?php
|
||||
if (!filter_var(trim($row['object']), FILTER_VALIDATE_EMAIL)) {
|
||||
|
|
|
@ -75,7 +75,7 @@ services:
|
|||
- clamd
|
||||
|
||||
rspamd-mailcow:
|
||||
image: mailcow/rspamd:1.6
|
||||
image: mailcow/rspamd:1.7
|
||||
build: ./data/Dockerfiles/rspamd
|
||||
command: "/usr/bin/rspamd -f -u _rspamd -g _rspamd"
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in New Issue