(@bounceTypeID, 'authentication (is )?required');
UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'server is (down or unreachable|not responding)' WHERE `id` = 20;
+
+SELECT @bounceTypeID := max(id) FROM civicrm_mailing_bounce_type WHERE name = 'Invalid';
+INSERT INTO civicrm_mailing_bounce_pattern (bounce_type_id, pattern)
+ VALUES
+ (@bounceTypeID, '5.1.0 Address rejected'),
+ (@bounceTypeID, 'no valid recipients?'),
+ (@bounceTypeID, 'RecipNotFound'),
+ (@bounceTypeID, 'no one at this address'),
+ (@bounceTypeID, 'misconfigured forwarding address'),
+ (@bounceTypeID, 'account is not allowed'),
+ (@bounceTypeID, 'Address .<[^>]*>. not known here');
+
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'address(es)?( you (entered|specified))? (could|was)( not|n.t)( be)? found' WHERE `id` = 44;
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'address(ee)? (unknown|invalid)' WHERE `id` = 45;
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = '(mail )?delivery (to this user )?is not allowed' WHERE `id` = 59;
+UPDATE `civicrm_mailing_bounce_pattern` SET `pattern` = 'no such (mail drop|mailbox( \w+)?|(e-?mail )?address|recipient|(local )?user|person)( here)?' WHERE `id` = 64;
+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;
(@bounceTypeID, '(user|recipient( name)?) is not recognized'),
(@bounceTypeID, '554 delivery error'),
(@bounceTypeID, 'address does not exist'),
- (@bounceTypeID, 'address(es)? could not be found'),
- (@bounceTypeID, 'addressee unknown'),
+ (@bounceTypeID, 'address(es)?( you (entered|specified))? (could|was)( not|n.t)( be)? found'),
+ (@bounceTypeID, 'address(ee)? (unknown|invalid)'),
(@bounceTypeID, 'bad destination'),
(@bounceTypeID, 'badly formatted address'),
(@bounceTypeID, 'can\'t open mailbox for'),
(@bounceTypeID, 'illegal alias'),
(@bounceTypeID, 'invalid (mailbox|(e-?mail )?address|recipient|final delivery)'),
(@bounceTypeID, 'invalid( or unknown)?( virtual)? user'),
- (@bounceTypeID, 'mail delivery to this user is not allowed'),
+ (@bounceTypeID, '(mail )?delivery (to this user )?is not allowed'),
(@bounceTypeID, 'mailbox (not found|unavailable|name not allowed)'),
(@bounceTypeID, 'message could not be forwarded'),
(@bounceTypeID, 'missing or malformed local(-| )part'),
(@bounceTypeID, 'no e-?mail address registered'),
- (@bounceTypeID, 'no such (mail drop|mailbox( \w+)?|(e-?mail )?address|recipient|(local )?user)( here)?'),
- (@bounceTypeID, 'no mailbox here by that name'),
+ (@bounceTypeID, 'no such (mail drop|mailbox( \w+)?|(e-?mail )?address|recipient|(local )?user|person)( here)?'),
+ (@bounceTypeID, 'no mailbox (here )?by that name'),
(@bounceTypeID, 'not (listed in|found in directory|known at this site|our customer)'),
(@bounceTypeID, 'not a valid( (user|mailbox))?'),
(@bounceTypeID, 'not present in directory entry'),
- (@bounceTypeID, 'recipient (does not exist|(is )?unknown)'),
+ (@bounceTypeID, 'recipient (does not exist|(is )?unknown|rejected|denied|not found)'),
(@bounceTypeID, 'this user doesn\'t have a yahoo.com address'),
(@bounceTypeID, 'unavailable to take delivery of the message'),
(@bounceTypeID, 'unavailable mailbox'),
- (@bounceTypeID, 'unknown (local( |-)part|recipient)'),
+ (@bounceTypeID, 'unknown (local( |-)part|recipient|address error)'),
(@bounceTypeID, 'unknown( or illegal)? user( account)?'),
(@bounceTypeID, 'unrecognized recipient'),
(@bounceTypeID, 'unregistered address'),
(@bounceTypeID, 'user (unknown|does not exist)'),
(@bounceTypeID, 'user doesn\'t have an? \w+ account'),
(@bounceTypeID, 'user(\'s e-?mail name is)? not found'),
- (@bounceTypeID, '^Validation failed for:');
+ (@bounceTypeID, '^Validation failed for:'),
+ (@bounceTypeID, '5.1.0 Address rejected'),
+ (@bounceTypeID, 'no valid recipients?'),
+ (@bounceTypeID, 'RecipNotFound'),
+ (@bounceTypeID, 'no one at this address'),
+ (@bounceTypeID, 'misconfigured forwarding address'),
+ (@bounceTypeID, 'account is not allowed'),
+ (@bounceTypeID, 'Address .<[^>]*>. not known here');
INSERT INTO civicrm_mailing_bounce_type
(name, description, hold_threshold)