You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mail_sovereignty/classifier.py
+21-20Lines changed: 21 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -84,30 +84,22 @@ def _rule_confidence(
84
84
85
85
Rule chain (ordered by specificity, first match wins):
86
86
87
-
```
88
-
- MX only 80% (Most likely unfinished config)
89
-
- MX + SPF 90% (Managed setup)
90
-
- AD + SPF 90% (Security GW upfront)
91
-
- MX + SPF + AD 95% (Cloud Setup)
92
-
93
-
AD Cases sind natürlich nur MS-relevant. Mit den restlichen Indikatoren könntest du bspw. dann die restlichen 5-10% auffüllen. Die %-te kann man natürlich auch anders aufteilen.
94
-
```
95
-
96
-
// messen wie viel Rule gebraucht wird, evtl R5-R8 nicht unbeding relevant
97
-
98
-
99
87
==== ========================== ====
100
88
Rule Condition Base
101
89
==== ========================== ====
102
90
R1 MX ∧ SPF ∧ TENANT 0.95
103
-
R2 MX ∧ SPF 0.90
104
-
R3 SPF ∧ TENANT ∧ GW 0.90
105
-
R4 MX ∧ TENANT 0.85
106
-
R5 SPF ∧ TENANT 0.80
107
-
R6 SPF ∧ GW 0.70
108
-
R7 MX 0.80
109
-
R8 SPF 0.50
110
-
R9 else 0.40
91
+
R2 MX ∧ SPF ∧ AD 0.95
92
+
R3 AD ∧ SPF ∧ TENANT 0.95
93
+
R4 MX ∧ SPF 0.90
94
+
R5 SPF ∧ TENANT ∧ GW 0.90
95
+
R6 AD ∧ SPF 0.90
96
+
R7 MX ∧ TENANT 0.85
97
+
R8 MX ∧ AD 0.85
98
+
R9 SPF ∧ TENANT 0.80
99
+
R10 SPF ∧ GW 0.70
100
+
R11 MX 0.80
101
+
R12 SPF 0.50
102
+
R13 else 0.40
111
103
==== ========================== ====
112
104
113
105
After the base is selected, each signal in *signals* that was **not**
0 commit comments