[Rspamd] Add local fuzzy worker

This commit is contained in:
André
2018-07-29 00:34:36 +02:00
parent ff463168d1
commit d8f86ae488
5 changed files with 88 additions and 2 deletions

View File

@@ -321,6 +321,29 @@ while ($row = array_shift($rows)) {
<?php
}
/*
// Start traps
*/
?>
traps {
<?php
foreach (ucl_rcpts('spam@localhost', 'mailbox') as $rcpt) {
?>
rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
<?php
}
foreach (ucl_rcpts('ham@localhost', 'mailbox') as $rcpt) {
?>
rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
<?php
}
?>
priority = 9;
want_spam = yes;
}
<?php
// Start additional content
$stmt = $pdo->query("SELECT `id`, `content` FROM `settingsmap` WHERE `active` = '1'");