bounce processing with exchange - config recommendation

Solutions for other advanced phplisters

bounce processing with exchange - config recommendation

Postby JDSA » 1:38pm, Wed 11 Mar, 2009

I have successfully installed PHPlist on an Ubuntu server, and I am routing emails through an Exchange 2003 SP2 mail server just fine.

Unfortunately, I am having troubles getting bounce processing to work correctly. PHPlist can pull in the bounced emails, but it cannot match any of the bounced mails to a member. Advanced processing does not work either. It seems as if PHPlist cannot read the contents of the bounced email.

I started out with the default settings in PHPlist, and I have also tried the configuration changes as suggested for Exchange server processing in the PHPlistIIS article with no luck.

Is there anyone who is using PHPlist on a LAMP setup who has bounce processing working correctly with an Exchange 2003 server? If so, I would greatly appreciate knowing what steps you took to set it up.

I'm using PHPlist 2.10.9 on Ubuntu 8.04, Exchange 2003 SP2 for email.
JDSA
phpList newbie
 
Posts: 4
Joined: 4:38pm, Tue 03 Mar, 2009

Re: bounce processing with exchange - config recommendation

Postby DocRyan » 1:01pm, Mon 19 Oct, 2009

After some testing and trying the suggestions from this forum with no luck. I started to find a solution and found that none of the strings in the file admin/processbounces.php matched what was in the mail. So no surprise that the script do not find any matching users.

The script checks for X-ListMember and X-User but non of these are in the mail. But I found that X-Display-Name always is, so just add this to the script and it works :D
I do not now if this will break other things but I have not found any problem with it yet.

Search for this in admin/processbounces.php
Code: Select all
  preg_match ("/X-ListMember: (.*)/i",$body,$match);
  if (is_array($match) && isset($match[1]))
    $user = trim($match[1]);
  if (!$user) {
    # older version use X-User
    preg_match ("/X-User: (.*)/i",$body,$match);
    if (is_array($match) && isset($match[1]))
      $user = trim($match[1]);
  }

And replace it with this
Code: Select all
  preg_match ("/X-ListMember: (.*)/i",$body,$match);
  if (is_array($match) && isset($match[1]))
    $user = trim($match[1]);
  if (!$user) {
    preg_match ("/X-Display-Name: (\S*)/i",$body,$match);
    if (is_array($match) && isset($match[1]))
      $user = trim($match[1]);
    if (!$user) {
      # older version use X-User
      preg_match ("/X-User: (.*)/i",$body,$match);
      if (is_array($match) && isset($match[1]))
        $user = trim($match[1]);
    }
  }


/ryan^Zebs
DocRyan
phpList newbie
 
Posts: 1
Joined: 12:39pm, Mon 19 Oct, 2009

Re: bounce processing with exchange - config recommendation

Postby benhar » 2:29pm, Fri 23 Oct, 2009

I haven't tried to get bounce testing to work yet, but I'm more curious how you have the relay setup through your Exchange server. I have the same setup as you (Ubuntu, PHP 2.10.10, Exchange '03 SP2) and am having some issues with messages bouncing back because of bad message body content

The following recipient(s) could not be reached:

*filtered* on 10/23/2009 7:41 AM
The message contains a content type that is not supported
<mail.filtereddomain.com #5.6.1 smtp;554 5.6.1 Body type not supported by Remote Host>


I'm going to start a new post about this but thought I'd get your input to configuration.

Thanks!!!
benhar
phpList newbie
 
Posts: 4
Joined: 2:14pm, Fri 23 Oct, 2009


Return to Advanced Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests