This commit is contained in:
Mariusz B. / mgeeky 2021-10-17 21:31:54 +02:00
parent 21bff2089a
commit 3d782f1f2f
1 changed files with 35 additions and 52 deletions

View File

@ -1001,17 +1001,12 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
self.results['X-Forefront-Antispam-Report'] = self.testForefrontAntiSpamReport() self.results['X-Forefront-Antispam-Report'] = self.testForefrontAntiSpamReport()
self.results['X-Microsoft-Antispam-Mailbox-Delivery'] = self.testAntispamMailboxDelivery() self.results['X-Microsoft-Antispam-Mailbox-Delivery'] = self.testAntispamMailboxDelivery()
self.results['X-Microsoft-Antispam Bulk Mail'] = self.testMicrosoftAntiSpam() self.results['X-Microsoft-Antispam Bulk Mail'] = self.testMicrosoftAntiSpam()
self.results['End-to-End Latency - Message Delivery Time'] = self.testTransportEndToEndLatency()
self.results['X-MS-Oob-TLC-OOBClassifiers'] = self.testTLCOObClasifiers()
self.results['MS Defender ATP Message Properties'] = self.testATPMessageProperties()
self.results['Domain Impersonation'] = self.testDomainImpersonation()
self.results['X-Exchange-Antispam-Report-CFA-Test'] = self.testAntispamReportCFA() self.results['X-Exchange-Antispam-Report-CFA-Test'] = self.testAntispamReportCFA()
self.results['Spam Diagnostics Metadata'] = self.testSpamDiagnosticMetadata() self.results['Domain Impersonation'] = self.testDomainImpersonation()
self.results['SpamAssassin Spam Status'] = self.testSpamAssassinSpamStatus() self.results['SpamAssassin Spam Status'] = self.testSpamAssassinSpamStatus()
self.results['SpamAssassin Spam Level'] = self.testSpamAssassinSpamLevel() self.results['SpamAssassin Spam Level'] = self.testSpamAssassinSpamLevel()
self.results['SpamAssassin Spam Flag'] = self.testSpamAssassinSpamFlag() self.results['SpamAssassin Spam Flag'] = self.testSpamAssassinSpamFlag()
self.results['SpamAssassin Spam Report'] = self.testSpamAssassinSpamReport() self.results['SpamAssassin Spam Report'] = self.testSpamAssassinSpamReport()
self.results['Message Feedback Loop'] = self.testMSFBL()
self.results['OVH\'s X-VR-SPAMCAUSE'] = self.testSpamCause() self.results['OVH\'s X-VR-SPAMCAUSE'] = self.testSpamCause()
self.results['OVH\'s X-Ovh-Spam-Reason'] = self.testOvhSpamReason() self.results['OVH\'s X-Ovh-Spam-Reason'] = self.testOvhSpamReason()
self.results['OVH\'s X-Ovh-Spam-Score'] = self.testOvhSpamScore() self.results['OVH\'s X-Ovh-Spam-Score'] = self.testOvhSpamScore()
@ -1019,6 +1014,11 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
self.results['X-Spam-Checker-Version'] = self.testXSpamCheckerVersion() self.results['X-Spam-Checker-Version'] = self.testXSpamCheckerVersion()
self.results['X-IronPort-AV'] = self.testXIronPortAV() self.results['X-IronPort-AV'] = self.testXIronPortAV()
self.results['X-Mimecast-Spam-Score'] = self.testXMimecastSpamScore() self.results['X-Mimecast-Spam-Score'] = self.testXMimecastSpamScore()
self.results['Spam Diagnostics Metadata'] = self.testSpamDiagnosticMetadata()
self.results['MS Defender ATP Message Properties'] = self.testATPMessageProperties()
self.results['Message Feedback Loop'] = self.testMSFBL()
self.results['End-to-End Latency - Message Delivery Time'] = self.testTransportEndToEndLatency()
self.results['X-MS-Oob-TLC-OOBClassifiers'] = self.testTLCOObClasifiers()
if self.decode_all: if self.decode_all:
self.results['X-Microsoft-Antispam-Message-Info'] = self.testMicrosoftAntiSpamMessageInfo() self.results['X-Microsoft-Antispam-Message-Info'] = self.testMicrosoftAntiSpamMessageInfo()
@ -1106,8 +1106,6 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
'analysis' : result 'analysis' : result
} }
def testSpamDiagnosticMetadata(self): def testSpamDiagnosticMetadata(self):
(num, header, value) = self.getHeader('SpamDiagnosticMetadata') (num, header, value) = self.getHeader('SpamDiagnosticMetadata')
if num == -1: return [] if num == -1: return []
@ -1855,11 +1853,6 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
tmp += '\t' + SMTPHeadersAnalysis.ForeFront_Bulk_Confidence_Levels[levels[0]] + '\n' tmp += '\t' + SMTPHeadersAnalysis.ForeFront_Bulk_Confidence_Levels[levels[0]] + '\n'
break break
tmp += f'''
More information:
- https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/bulk-complaint-level-values
'''
result += tmp result += tmp
return { return {
@ -1999,16 +1992,6 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
if addscl: if addscl:
result += tmpfoo result += tmpfoo
result += f'''
More information:
- https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spam-message-headers
- https://docs.microsoft.com/en-us/exchange/antispam-and-antimalware/antispam-protection/antispam-stamps
- https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/spam-confidence-levels
- https://docs.microsoft.com/en-us/exchange/monitoring/trace-an-email-message/run-a-message-trace-and-view-results
'''
if len(result) == 0: if len(result) == 0:
return [] return []