Skip to content

Commit dbc6479

Browse files
committed
rspamd: add multimap.conf template
1 parent 36cdb85 commit dbc6479

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,7 @@ public function configure_rspamd() {
18971897
'neural_group.conf',
18981898
'users.conf',
18991899
'groups.conf',
1900+
'multimap.conf',
19001901
);
19011902
foreach ($local_d as $f) {
19021903
if(file_exists($conf['ispconfig_install_dir']."/server/conf-custom/install/rspamd_${f}.master")) {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# from https://rspamd.com/doc/configuration/selectors.html
2+
INVALUEMENT_SENDGRID_ID {
3+
type = "selector";
4+
selector = 'header("X-SG-EID").id;from("smtp","orig").regexp("/^<?bounces\+(\d+)\-[^@]+@/i").last';
5+
map = "https://www.invaluement.com/spdata/sendgrid-id-dnsbl.txt";
6+
score = 6.0;
7+
}
8+
9+
INVALUEMENT_SENDGRID_DOMAIN {
10+
type = "selector";
11+
selector = 'header("X-SG-EID").id;from("smtp","orig"):domain.get_tld';
12+
map = "https://www.invaluement.com/spdata/sendgrid-envelopefromdomain-dnsbl.txt";
13+
score = 6.0;
14+
}
15+

0 commit comments

Comments
 (0)