From 40ddeecaa617ca6b180361b10c3de350def9500e Mon Sep 17 00:00:00 2001 From: Jaka Kranjc Date: Sun, 8 Feb 2015 21:38:55 +0100 Subject: [PATCH] CRM-15934: more spam patterns MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit for reponses: 5.7.0 Local Policy Violation 5.7.1 Message rejected as spam by Content Filtering. Client host [IP] blocked using automatic messages are not accepted by this group automatically-generated messages are not accepted by this group 550 Denied by policy Our system has detected that this message 550-5.7.1 is likely unsolicited mail End-of-data rejected: Blocked - Your IP [IP] has no corresponding reverse (PTR) address Sporočila ni bilo mogoče dostaviti zaradi varnostnega pravilnika --- CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl | 14 ++++++++++++++ xml/templates/civicrm_data.tpl | 12 ++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl index ca7173997f..fb0d932ace 100644 --- a/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.6.alpha6.mysql.tpl @@ -75,3 +75,17 @@ UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'no such (mail drop|mail UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'no mailbox (here )?by that name' WHERE `id` = 65; UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'recipient (does not exist|(is )?unknown|rejected|denied|not found)' WHERE `id` = 69; UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'unknown (local( |-)part|recipient|address error)' WHERE `id` = 73; + +SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'Spam'; +INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern) + VALUES + (@bounceTypeID, 'Client host \[[^]]*\] blocked'), + (@bounceTypeID, 'automatic(ally-generated)? messages are not accepted'), + (@bounceTypeID, 'denied by policy'), + (@bounceTypeID, 'has no corresponding reverse \(PTR\) address'), + (@bounceTypeID, 'has a policy that( [^ ]*)? prohibited the mail that you sent'), + (@bounceTypeID, 'is likely unsolicited mail'), + (@bounceTypeID, 'Local Policy Violation'), + (@bounceTypeID, 'ni bilo mogo..?e dostaviti zaradi varnostnega pravilnika'); + +UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = '(detected|rejected) as spam' WHERE `id` = 126; diff --git a/xml/templates/civicrm_data.tpl b/xml/templates/civicrm_data.tpl index f4f372013b..b908f01a97 100644 --- a/xml/templates/civicrm_data.tpl +++ b/xml/templates/civicrm_data.tpl @@ -1376,8 +1376,16 @@ INSERT INTO civicrm_mailing_bounce_pattern (@bounceTypeID, 'sender was rejected'), (@bounceTypeID, 'spam(check| reduction software| filters?)'), (@bounceTypeID, 'blocked by a user configured filter'), - (@bounceTypeID, 'detected as spam'), - (@bounceTypeID, 'X-HmXmrOriginalRecipient'); + (@bounceTypeID, '(detected|rejected) as spam'), + (@bounceTypeID, 'X-HmXmrOriginalRecipient'), + (@bounceTypeID, 'Client host \[[^]]*\] blocked'), + (@bounceTypeID, 'automatic(ally-generated)? messages are not accepted'), + (@bounceTypeID, 'denied by policy'), + (@bounceTypeID, 'has no corresponding reverse (PTR) address'), + (@bounceTypeID, 'has a policy that( [^ ]*)? prohibited the mail that you sent'), + (@bounceTypeID, 'is likely unsolicited mail'), + (@bounceTypeID, 'Local Policy Violation'), + (@bounceTypeID, 'ni bilo mogo..?e dostaviti zaradi varnostnega pravilnika'); INSERT INTO civicrm_mailing_bounce_type (name, description, hold_threshold) -- 2.25.1