Skip to content

Commit 5af7908

Browse files
author
Marius Burkard
committed
- fixed apache vhost and ssl settings
- changed some rspamd config to new syntax
1 parent 4a95363 commit 5af7908

10 files changed

+195
-194
lines changed

server/conf/rspamd_antivirus.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ clamav {
22
# If set force this action if any virus is found (default unset: no action is forced)
33
#action = "reject";
44
# if `true` only messages with non-image attachments will be checked (default true)
5-
attachments_only = true;
5+
scan_mime_parts = true;
66
# If `max_size` is set, messages > n bytes in size are not scanned
77
#max_size = 20000000;
88
# symbol to add (add it to metric if you want non-zero weight)

server/conf/rspamd_metrics.conf.master

Lines changed: 0 additions & 17 deletions
This file was deleted.

server/conf/rspamd_metrics_override.conf.master

Lines changed: 0 additions & 159 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# RBL
2+
symbols = {
3+
"RBL_SENDERSCORE" {
4+
weight = 4.0;
5+
description = "From address is listed in senderscore.com BL";
6+
}
7+
"RBL_SPAMHAUS_SBL" {
8+
weight = 2.0;
9+
description = "From address is listed in zen sbl";
10+
}
11+
"RBL_SPAMHAUS_CSS" {
12+
weight = 2.0;
13+
description = "From address is listed in zen css";
14+
}
15+
"RBL_SPAMHAUS_XBL" {
16+
weight = 4.0;
17+
description = "From address is listed in zen xbl";
18+
}
19+
"RBL_SPAMHAUS_XBL_ANY" {
20+
weight = 4.0;
21+
description = "From or receive address is listed in zen xbl (any list)";
22+
}
23+
"RBL_SPAMHAUS_PBL" {
24+
weight = 2.0;
25+
description = "From address is listed in zen pbl (ISP list)";
26+
}
27+
"RBL_SPAMHAUS_DROP" {
28+
weight = 7.0;
29+
description = "From address is listed in zen drop bl";
30+
}
31+
"RECEIVED_SPAMHAUS_XBL" {
32+
weight = 3.0;
33+
description = "Received address is listed in zen xbl";
34+
one_shot = true;
35+
}
36+
"RBL_MAILSPIKE_WORST" {
37+
weight = 2.0;
38+
description = "From address is listed in RBL - worst possible reputation";
39+
}
40+
"RBL_MAILSPIKE_VERYBAD" {
41+
weight = 1.5;
42+
description = "From address is listed in RBL - very bad reputation";
43+
}
44+
"RBL_MAILSPIKE_BAD" {
45+
weight = 1.0;
46+
description = "From address is listed in RBL - bad reputation";
47+
}
48+
"RBL_SEM" {
49+
weight = 1.0;
50+
description = "Address is listed in Spameatingmonkey RBL";
51+
}
52+
# /RBL
53+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
symbols = {
2+
# SURBL
3+
"PH_SURBL_MULTI" {
4+
weight = 5.5;
5+
description = "SURBL: Phishing sites";
6+
}
7+
"MW_SURBL_MULTI" {
8+
weight = 5.5;
9+
description = "SURBL: Malware sites";
10+
}
11+
"ABUSE_SURBL" {
12+
weight = 5.5;
13+
description = "SURBL: ABUSE";
14+
}
15+
"CRACKED_SURBL" {
16+
weight = 4.0;
17+
description = "SURBL: cracked site";
18+
}
19+
"RAMBLER_URIBL" {
20+
weight = 4.5;
21+
description = "Rambler uribl";
22+
one_shot = true;
23+
}
24+
"RAMBLER_EMAILBL" {
25+
weight = 9.5;
26+
description = "Rambler emailbl";
27+
one_shot = true;
28+
}
29+
"MSBL_EBL" {
30+
weight = 7.5;
31+
description = "MSBL emailbl";
32+
one_shot = true;
33+
}
34+
"SEM_URIBL" {
35+
weight = 3.5;
36+
description = "Spameatingmonkey uribl";
37+
}
38+
"SEM_URIBL_FRESH15" {
39+
weight = 3.0;
40+
description = "Spameatingmonkey uribl. Domains registered in the last 15 days (.AERO,.BIZ,.COM,.INFO,.NAME,.NET,.PRO,.SK,.TEL,.US)";
41+
}
42+
"DBL" {
43+
weight = 0.0;
44+
description = "DBL unknown result";
45+
}
46+
"DBL_SPAM" {
47+
weight = 6.5;
48+
description = "DBL uribl spam";
49+
}
50+
"DBL_PHISH" {
51+
weight = 6.5;
52+
description = "DBL uribl phishing";
53+
}
54+
"DBL_MALWARE" {
55+
weight = 6.5;
56+
description = "DBL uribl malware";
57+
}
58+
"DBL_BOTNET" {
59+
weight = 5.5;
60+
description = "DBL uribl botnet C&C domain";
61+
}
62+
"DBL_ABUSE" {
63+
weight = 6.5;
64+
description = "DBL uribl abused legit spam";
65+
}
66+
"DBL_ABUSE_REDIR" {
67+
weight = 1.5;
68+
description = "DBL uribl abused spammed redirector domain";
69+
}
70+
"DBL_ABUSE_PHISH" {
71+
weight = 7.5;
72+
description = "DBL uribl abused legit phish";
73+
}
74+
"DBL_ABUSE_MALWARE" {
75+
weight = 7.5;
76+
description = "DBL uribl abused legit malware";
77+
}
78+
"DBL_ABUSE_BOTNET" {
79+
weight = 5.5;
80+
description = "DBL uribl abused legit botnet C&C";
81+
}
82+
"URIBL_BLACK" {
83+
weight = 7.5;
84+
description = "uribl.com black url";
85+
}
86+
"URIBL_RED" {
87+
weight = 3.5;
88+
description = "uribl.com red url";
89+
}
90+
"URIBL_GREY" {
91+
weight = 1.5;
92+
description = "uribl.com grey url";
93+
one_shot = true;
94+
}
95+
"URIBL_SBL" {
96+
weight = 6.5;
97+
description = "Spamhaus SBL URIBL";
98+
}
99+
"URIBL_SBL_CSS" {
100+
weight = 6.5;
101+
description = "Spamhaus SBL CSS URIBL";
102+
}
103+
"RBL_SARBL_BAD" {
104+
weight = 2.5;
105+
description = "A domain listed in the mail is blacklisted in SARBL";
106+
}
107+
# /SURBL
108+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
subject = "***SPAM*** %s";
2+
symbols = {
3+
"CLAM_VIRUS" {
4+
weight = 50;
5+
description = "Clamav has found a virus.";
6+
}
7+
"JUST_EICAR" {
8+
weight = 50;
9+
description = "Clamav has found a virus.";
10+
}
11+
"R_DUMMY" {
12+
weight = 0.0;
13+
description = "Dummy symbol";
14+
}
15+
}

server/lib/classes/letsencrypt.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function get_acme_command($domains, $key_file, $bundle_file, $cert_file)
6767
return false;
6868
}
6969

70-
$cmd = $letsencrypt . " --issue $cmd -w /usr/local/ispconfig/interface/acme && " . $letsencrypt . " --install-cert " . $cmd . " --key-file " . escapeshellarg($key_file) . " --fullchain-file " . escapeshellarg($bundle_file) . " --cert-file " . escapeshellarg($cert_file) . " --reloadcmd " . escapeshellarg($this->get_reload_command());
70+
$cmd = 'R=0 ; C=0 ; ' . $letsencrypt . ' --issue ' . $cmd . ' -w /usr/local/ispconfig/interface/acme ; R=$? ; if [[ $R -eq 0 || $R -eq 2 ]] ; then ' . $letsencrypt . ' --install-cert ' . $cmd . ' --key-file ' . escapeshellarg($key_file) . ' --fullchain-file ' . escapeshellarg($bundle_file) . ' --cert-file ' . escapeshellarg($cert_file) . ' --reloadcmd ' . escapeshellarg($this->get_reload_command()) . '; C=$? ; fi ; if [[ $C -eq 0 ]] ; then exit $R ; else exit $C ; fi';
7171

7272
return $cmd;
7373
}

0 commit comments

Comments
 (0)