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: modules/imap/functions.php
+235-1Lines changed: 235 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1705,7 +1705,24 @@ function normalize_spam_report_error($error_msg) {
1705
1705
'AbuseIPDB validation error' => 'AbuseIPDB validation error. Please check your API key and configuration.',
1706
1706
'AbuseIPDB error' => 'An error occurred while reporting to AbuseIPDB. Please try again later.',
1707
1707
'Invalid response from AbuseIPDB' => 'Invalid response from AbuseIPDB. Please try again later.',
1708
-
'cURL error' => 'Failed to connect to AbuseIPDB. Please check your internet connection.'
1708
+
'cURL error' => 'Failed to connect to AbuseIPDB. Please check your internet connection.',
1709
+
1710
+
// APWG error mappings
1711
+
'APWG reporting is not enabled' => 'APWG reporting is not enabled. Please enable it in Settings.',
1712
+
'No sender email address configured' => 'No sender email address configured. Please configure it in Settings.',
1713
+
'Failed to send email to APWG' => 'Failed to send email to APWG. Please check your server mail configuration.',
1714
+
'send email to APWG' => 'Failed to send email to APWG. Please check your server mail configuration.',
1715
+
'SMTP error' => 'Failed to send email to APWG. The SMTP server did not accept the message. Please check your SMTP configuration.',
1716
+
'SMTP server did not confirm delivery' => 'Failed to send email to APWG. The SMTP server did not confirm delivery (expected 250 OK response). Please try again later.',
1717
+
'SMTP server did not accept' => 'Failed to send email to APWG. The SMTP server did not accept the message for delivery. Please check your SMTP configuration.',
1718
+
'RCPT command failed' => 'Failed to send email to APWG. The recipient address may be invalid or rejected by the SMTP server.',
1719
+
'DATA command failed' => 'Failed to send email to APWG. The SMTP server did not accept the message data. Please try again later.',
1720
+
'250' => 'Email was successfully sent to APWG (250 OK response received).',
1721
+
'550' => 'Failed to send email to APWG. The recipient address was rejected by the mail server (550 error).',
1722
+
'551' => 'Failed to send email to APWG. The recipient address does not exist (551 error).',
1723
+
'552' => 'Failed to send email to APWG. The mail server rejected the message due to size limits (552 error).',
1724
+
'553' => 'Failed to send email to APWG. The recipient address format is invalid (553 error).',
1725
+
'554' => 'Failed to send email to APWG. The mail server rejected the message (554 error).'
1709
1726
);
1710
1727
1711
1728
foreach ($error_mappingsas$key => $message) {
@@ -1942,6 +1959,223 @@ function report_spam_to_spamcop($message_source, $reasons, $user_config, $sessio
1942
1959
}
1943
1960
}}
1944
1961
1962
+
/**
1963
+
* Report phishing message to APWG (Anti-Phishing Working Group)
1964
+
* Uses authenticated SMTP to ensure proper SPF/DKIM validation
1965
+
* Must use the exact email address from the IMAP server where the message is located
0 commit comments