- Code: Select all
if($config['check_bounces'])
{
$mbox = imap_open("{localhost:143/imap/notls}", $config[bounce_mailbox], $config[bounce_password]);
$headers = imap_sort($mbox,SORTDATE,1);
while (list ($key, $val) = each ($headers))
{
$body = imap_body ($mbox, $val);
preg_match("/[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]+\.[A-z0-9]{2,6}/i",$body,$matches);
$bounce_query = "UPDATE mailinglist_subscribers SET bounce_count = bounce_count + 1 WHERE address = '$matches[0]'";
$bounce_result = mysql_query($bounce_query) or die("Query failed : " . mysql_error());
imap_delete($mbox,$val);
}
imap_expunge($mbox);
imap_close($mbox);
}
Only finds bogus2@jiuythgf.org
- Code: Select all
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
bogus2@jiuythgf.org
The mail server could not deliver mail to bogus2@jiuythgf.org. The account or
domain may not exist, they may be blacklisted, or missing the proper dns
entries.
bogus1@jkirritr.org
The mail server could not deliver mail to bogus1@jkirritr.org. The account or
domain may not exist, they may be blacklisted, or missing the proper dns
entries.
bogus3@kklopoik.org
The mail server could not deliver mail to bogus3@kklopoik.org. The account or
domain may not exist, they may be blacklisted, or missing the proper dns
entries.
