Bounce checker not removing users
Posted by Paul Nesbitt, Last modified by Paul Nesbitt on 06 October 2016 05:52 PM

Bounce checker does not remove users when their email addresses bounce in bouncechecker.php

However it does process and remove the bounced emails from the bounce mailbox.

The issue here is with the preg_match on line 51.

What is happening is that although it matches emails with the Regex patterns defined and then removes them so $matched==TRUE but the preg_match string that checks through the $mail_body is not finding email addresses within.

If you update line 51 from:

if (preg_match("/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z0-9.-]+$/i",$mail_body, $matches)) {


if (preg_match("/[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})/i", $mail_body, $matches)) {

It will now find the email addresses in $mail_body and remove the users from the database accordingly.


Paul Nesbitt
PAC Web Hosting


(4 vote(s))
Not helpful

Comments (0)