[Rspamd] Remove SOGO_CONTACT for header from
parent
b710cb751b
commit
e43c696204
|
@ -177,31 +177,6 @@ foreach (wl_by_sogo() as $user => $contacts) {
|
||||||
rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
|
rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
apply "default" {
|
|
||||||
SOGO_CONTACT = -999.0;
|
|
||||||
}
|
|
||||||
symbols [
|
|
||||||
"SOGO_CONTACT"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
whitelist_sogo_<?=$username_sane;?>_header {
|
|
||||||
header = {
|
|
||||||
<?php
|
|
||||||
foreach ($contacts as $contact) {
|
|
||||||
?>
|
|
||||||
"From" = <?=json_encode(str_replace('/^', '/(', str_replace('$/i', ')/i', $contact)), JSON_UNESCAPED_SLASHES);?>;
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
}
|
|
||||||
priority = 4;
|
|
||||||
<?php
|
|
||||||
foreach (ucl_rcpts($user, 'mailbox') as $rcpt) {
|
|
||||||
?>
|
|
||||||
rcpt = <?=json_encode($rcpt, JSON_UNESCAPED_SLASHES);?>;
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
apply "default" {
|
apply "default" {
|
||||||
SOGO_CONTACT = -999.0;
|
SOGO_CONTACT = -999.0;
|
||||||
|
|
Loading…
Reference in New Issue