[tutorial] How to get bounce handling to work

Solutions for other phpList version 2 users
Forum rules
Please do not ask questions here, this is for Solutions you have discovered or come across.

Re: [tutorial] How to get bounce handling to work

Postby djvibe » 11:20pm, Mon 25 May, 2009

I am having trouble getting the bounce handling to work with Google Apps Gmail as the POP account.

I get this error.


----

Cannot create POP3 connection to pop.gmail.com: Can't connect to gmail-pop.l.google.com,995: Connection timed out
Identifying consecutive bounces
Nothing to do
Identifying consecutive bounces
0 users processed

----

I found a great post that explains what to do but it didnt work for me. I have enabled the Gmail account to work for POP.
http://www.google.com/support/forum/p/G ... e91d&hl=en

Here is the Bounce handling info in my config.php.. Anny help would be appreciated. Cheers!!

Code: Select all
*/

# Message envelope. This is the email that system messages come from
# it is useful to make this one where you can process the bounces on
# you will probably get a X-Authentication-Warning in your message
# when using this with sendmail
# NOTE: this is *very* different from the From: line in a message
# to use this feature, uncomment the following line, and change the email address
# to some existing account on your system
# requires PHP version > "4.0.5" and "4.3.1+" without safe_mode
$message_envelope = 'no-reply@studiox.tv';

# Handling bounces. Check README.bounces for more info
# This can be 'pop' or 'mbox'
$bounce_protocol = 'pop';

# set this to 0, if you set up a cron to download bounces regularly by using the
# commandline option. If this is 0, users cannot run the page from the web
# frontend. Read README.commandline to find out how to set it up on the
# commandline
define ("MANUALLY_PROCESS_BOUNCES",1);

# when the protocol is pop, specify these three
$bounce_mailbox_host = 'pop.gmail.com';
$bounce_mailbox_user = 'no-reply@studiox.tv';
$bounce_mailbox_password = 'password';

# the "port" is the remote port of the connection to retrieve the emails
# the default should be fine but if it doesn't work, you can try the second
# one. To do that, add a # before the first line and take off the one before the
# second line

$bounce_mailbox_port = "995/pop3/ssl";
#$bounce_mailbox_port = "110/pop3";

# when the protocol is mbox specify this one
# it needs to be a local file in mbox format, accessible to your webserver user
$bounce_mailbox = '/var/spool/mail/listbounces';

# set this to 0 if you want to keep your messages in the mailbox. this is potentially
# a problem, because bounces will be counted multiple times, so only do this if you are
# testing things.
$bounce_mailbox_purge = 1;

# set this to 0 if you want to keep unprocessed messages in the mailbox. Unprocessed
# messages are messages that could not be matched with a user in the system
# messages are still downloaded into PHPlist, so it is safe to delete them from
# the mailbox and view them in PHPlist
$bounce_mailbox_purge_unprocessed = 1;

# how many bounces in a row need to have occurred for a user to be marked unconfirmed
$bounce_unsubscribe_threshold = 5;


/*
djvibe
phpList newbie
 
Posts: 1
Joined: 11:12pm, Mon 25 May, 2009

Re: [tutorial] How to get bounce handling to work

Postby dctrpl » 5:24pm, Thu 04 Jun, 2009

THANKYOU and congratulations for writing so clearly and not missing stuff out.

I'm making a mental note to come back here and study the style next time I have to write some instructions.

Props :D
dctrpl
phpLister
 
Posts: 9
Joined: 7:29pm, Sat 30 May, 2009

Re: [tutorial] How to get bounce handling to work

Postby pznet » 5:57am, Tue 09 Jun, 2009

Hi.

Before I was getting this message:

Cannot create POP3 connection to pop.gmail.com: Can't connect to gmail-pop.l.google.com,465: Connection timed out
Identifying consecutive bounces
Nothing to do
Identifying consecutive bounces
0 users processed

But I believe it was because I was using port 465 instead of port 995. But now, it start processing bounces but nothing happens... it goes on and on and don't know if that's because we've sent too many messages before and it's going to take a week or is it just that it is not working.

Any hint? Any other things to check?

The server has become very, very slow when sending messages and I believe is because we have never handled bounces before and there's many email addresses that are no longer valid.

Thanks for your help.
pznet
phpList newbie
 
Posts: 3
Joined: 3:58am, Sat 30 May, 2009

Re: [tutorial] How to get bounce handling to work

Postby cylehmann » 1:50pm, Thu 30 Jul, 2009

Hi,

I've got a similar problem. I configured config.php correctly (at least I think so). Everything works fine but if I try to access the bounced E-Mails I get:

Cannot create POP3 connection to *mailserver*:

Plus some informations that there are no bounced mails. I searched the forum and nearly everyone with the same issue has got a hint after the ":" like "connection timeout". Nothing on my side.

The logfile of my mailserver says: "Jul 30 15:03:03 SRV dovecot: auth(default): plain(?,IP.IP.IP.IP): invalid input ."

Username & Password is correct.

Can you helt me with this issue?


Greetings, Thomas
cylehmann
phpList newbie
 
Posts: 1
Joined: 1:41pm, Thu 30 Jul, 2009

Re: [tutorial] How to get bounce handling to work

Postby lost305 » 9:01pm, Mon 17 Aug, 2009

I need help.

Why doesn't the bounce messages arrive in my inbox?

I receive the test email I sent out to no-reply@mydomain
and I also placed a bad email address in the same list

I receive the report to the listreport@mydomain
but I don't receive the bounce message in my inbox

Please help.

Thank you for your time.
lost305
phpLister
 
Posts: 10
Joined: 12:49am, Sat 03 Jun, 2006

Re: [tutorial] How to get bounce handling to work

Postby diakrioi » 12:32pm, Tue 01 Sep, 2009

Thank you! I had everything right but your advice to run "Process Bounces" once to get all working was what did the trick. I had been trying to just view them and thinking that it didn't work because I couldn't. Thanks for the clear and detailed advice.
diakrioi
phpList newbie
 
Posts: 1
Joined: 12:29pm, Tue 01 Sep, 2009

Re: [tutorial] How to get bounce handling to work

Postby sstowell » 2:42am, Mon 02 Nov, 2009

Good tutorial, and now yes, I do get bounces.

HOWEVER (you could hear that one coming I suppose?) all is not well.

When I go to "view bounces" I find say 9, and select one. This lets me see an email and gives me some actions I then select (eg. remove bounce notice, delete user, etc.) and view the next bounce.

BUT these don't seem to actually work! Users don't get deleted, the bounce notice does not go away, and the display next bounce message does not work. If I re-select view bounces, then choose a different bounce message I can see each bounce, but I cannot do anything with the bounce except note/copy the email, then go to Users and delete or uncomfirm the user there.

I am running PhpList 2.10.10, and am slowly & painfully getting the software configured and incorporating a fix or two.

Any help on processing bounces will be appreciated!
sstowell
phpLister
 
Posts: 14
Joined: 4:49pm, Wed 14 Oct, 2009

Re: [tutorial] How to get bounce handling to work

Postby mylive09 » 11:32am, Thu 11 Feb, 2010

I had the same Issue the deleting user from list doesn't work.
A deeper look in the code shows in my mind some errors.
Some variables like $unconfirm, $deleteuser are check but not defined and false checked.

For me was this working. Editing file admin/bounce.php
Code: Select all
//  if (isset($userid) && $amount) {
   if (isset($userid) && $_REQUEST['amount']) {
   $amount = $_REQUEST['amount'];
    Sql_Query(sprintf('update %s set bouncecount = bouncecount + %d where id = %d',
      $tables["user"],$amount,$userid));
     if (Sql_Affected_Rows()) {
      print sprintf($GLOBALS['I18N']->get('AddedToB'),$amount,$userid)."\n";
    } else {
      print sprintf($GLOBALS['I18N']->get('AddedToB'),$amount,$userid)."\n";
    }
  }
//  if ($userid && $unconfirm) {
   if ($userid && $_REQUEST['unconfirm']) {
    Sql_Query(sprintf('update %s set confirmed = 0 where id = %d',
      $tables["user"],$userid));
     print sprintf($GLOBALS['I18N']->get('MadeUnconfirmed'), $userid);
  }
//  if ($userid && $maketext) {
   if ($userid && $_REQUEST['maketext']) {
    Sql_Query(sprintf('update %s set htmlemail = 0 where id = %d',
      $tables["user"],$userid));
     print sprintf($GLOBALS['I18N']->get('MadeUserRText'), $userid);
  }
//  if ($userid && $deleteuser) {
  if ($userid && $_REQUEST['deleteuser']) {
    deleteUser($userid);
    print sprintf($GLOBALS['I18N']->get('DelUser')."\n", $userid);
  }
//  if ($deletebounce) {
   if ($_REQUEST['deletebounce']) {
    print sprintf($GLOBALS['I18N']->get('DeletingB')."\n", $id);
    Sql_query("delete from {$tables["bounce"]} where id = $id");
    print $GLOBALS['I18N']->get('DoneAndLoading')."<br /><hr><br />\n";
    print PageLink2("bounces",$GLOBALS['I18N']->get('BackToBList'));
    $next = Sql_Fetch_Row_query(sprintf('select id from %s where id > %d',$tables["bounce"],$id));
    $id = $next[0];
    if (!$id) {
      $next = Sql_Fetch_Row_query(sprintf('select id from %s order by id desc limit 0,5',$tables["bounce"],$id));
      $id = $next[0];
    }
  }
}


HTH,
mylive09
mylive09
phpList newbie
 
Posts: 1
Joined: 11:04am, Thu 11 Feb, 2010

Re: [tutorial] How to get bounce handling to work

Postby indidginus » 11:41am, Sun 18 Apr, 2010

Hi guys,

This is a brilliant tutorial. Thank you. However, I'm a bit slow with this stuff it seems & still have questions....

I have set up $message_envelope = 'listbounces@deviantdidg.com'; which I have set up as an email alias on my web host control panel to forward to my yahoo email address (I don't want to have to login to my web host control panel to check mail - I use my yahoo account daily so would rather have everything go to this)l. Does that mean that I can leave the following as they are?

$bounce_mailbox_host = 'localhost';
$bounce_mailbox_user = 'popuser';
$bounce_mailbox_password = 'password';

Or have I misunderstood the whole bounce concept. I have read the documentation but much of it goes over my head, so if anyone can explain in idiot-proof terms that would be much appreciated!

I am using phplist version 2.10.11 & have attached my config.php file.

Michael.
Attachments
config.zip
(11 KiB) Downloaded 388 times
indidginus
PL Nut
 
Posts: 44
Joined: 11:27am, Sun 18 Apr, 2010
Location: Cape Town, South Africa.

Re: [tutorial] How to get bounce handling to work

Postby indidginus » 12:02pm, Sun 18 Apr, 2010

I've set up a dummy email address in my test list, but this doesn't return a bounce when I check "manage bounces".

Also, emails I send through to yahoo seem do disappear into nothingness..... They aren't redirected to the spam folder - they just don't appear in the account at all (tested with 2 yahoo accounts). Any idea why that would be? And how to fix?
indidginus
PL Nut
 
Posts: 44
Joined: 11:27am, Sun 18 Apr, 2010
Location: Cape Town, South Africa.

Re: [tutorial] How to get bounce handling to work

Postby rubenom » 2:08pm, Mon 19 Apr, 2010

Excellent!!!
Thank you very much!!!
rubenom
phpList newbie
 
Posts: 2
Joined: 1:27pm, Mon 19 Apr, 2010

Re: [tutorial] How to get bounce handling to work

Postby victoriabrown » 9:26am, Tue 04 May, 2010

such nice tutorial tips good work

keep it up guys
victoriabrown
phpList newbie
 
Posts: 1
Joined: 9:21am, Tue 04 May, 2010

Re: [tutorial] How to get bounce handling to work

Postby davestack » 5:39am, Wed 05 May, 2010

Thanks for the tips on setting up email bounce handling. It's helpful in troubleshooting issues on emails.
davestack
phpList newbie
 
Posts: 1
Joined: 5:11am, Wed 05 May, 2010

Re: [tutorial] How to get bounce handling to work

Postby homeimprovement » 5:08pm, Mon 10 May, 2010

I'm having the same problem as DarkArchon (of May, 2009). I have a valid bounce email account from which I sent and received valid emails. I sent out a bad email address directly from the bounce email account outbox and received a proper bounceback within minutes.

However, I am sending out an email to this same bad email account from an active user group within PHPList, and the bouncebacks are not making it back to the bounce email account.

Everything is working great other than this - I can process the bounces when I send an email directly to the bounce inbox, but getting the bounces from the emails sent through PHPList is not happening.

DarkArchon's trick of changing that "1" to "0" did not work for me.

I am running version 2.10.12 on a dedicated server. PHPLIst is set up on a subdomain, and all of the configure settings within the program reflect this.

I did rename the "lists" folder to something else.

NOTE: I used the SMTP feature n the config file (instead of the default PHP script outgoing mail handler) and I got this to work. Woohooo! But I still want to know why it isn't working the default way.
homeimprovement
phpList newbie
 
Posts: 1
Joined: 9:50pm, Tue 04 May, 2010

Re: [tutorial] How to get bounce handling to work

Postby eva » 2:56pm, Thu 09 Jun, 2011

Great tutorial!!
It worked for me. Thank you, thank you, thank you.
:D :D :D
eva
phpList newbie
 
Posts: 4
Joined: 8:31pm, Wed 08 Jun, 2011

PreviousNext

Return to Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest