Some bounce are not match

Matt95c

Member
Hi,

I've got some bounce who are well read but not processed by bounce handler.
I have add some rules in rules-custom.php but seem not effect.
How can I debug bounce handler, --verbose=1 doesn't output anything.

Main Header :
Code:
Content-Type: multipart/report; report-type=delivery-status;
        boundary="1BD8C1047C4.1479735762/lpn-prd-vrout013"

Delivery report
Code:
Final-Recipient: rfc822; notrealemail@laposte.net
Original-Recipient: rfc822;notrealemail@laposte.net
Action: failed
Status: 5.4.0
Remote-MTA: dns; smtpz4.laposte.net
Diagnostic-Code: smtp; 554 5.4.0 Error: too many hops

Campaign-Uid, Subscriber-Uid are well in original mail

Bounce rules custom added :
Code:
'/smtp;(\s*)?554 (.*)?too many hops/i',# smtp; 554 5.4.0 Error: too many hops
 
My rules-custom.php :

PHP:
<?php if ( ! class_exists('BounceHandler', false)) exit('No direct script access allowed');

return array(
  BounceHandler::DIAGNOSTIC_CODE_RULES => array(),
  BounceHandler::DSN_MESSAGE_RULES     => array(),
  BounceHandler::BODY_RULES            => array(),
  BounceHandler::COMMON_RULES          => array(
    array(
      'bounceType' => BounceHandler::BOUNCE_INTERNAL,
            'regex'         => array(

            ),
        ),
    array(
        'bounceType' => BounceHandler::BOUNCE_SOFT,
        'regex'      => array(

        ),
    ),
        array(
            'bounceType' => BounceHandler::BOUNCE_HARD,
            'regex' => array(
        //'/smtp; 554 5\.4\.0 Error: too many hops/i',# smtp; 554 5.4.0 Error: too many hops
        '/smtp;(\s*)?554 (.*)?too many hops/i',# smtp; 554 5.4.0 Error: too many hops
        '/delivery to host\s(.*)\[failed] timed out/i',#delivery to host back92-mail71-03.me-wanadoo.net[failed] timed out
       
      ),
        ),
  ),
);
 
Back
Top