Page 1 of 1

bouncehandling from cron

PostPosted: 3:31pm, Fri 09 Jan, 2015
by ELMIT
I must miss something. I tried:

config.php:
$message_envelope = 'listbounce@gmail.com';
define ("MANUALLY_PROCESS_BOUNCES",0);

# when the protocol is pop, specify these three
$bounce_mailbox_host = 'pop.gmail.com';
$bounce_mailbox_user = 'listbounce';
$bounce_mailbox_password = '**********';

$bounce_mailbox_port = "995/pop3/ssl";
# above requires to change /admin/processbounces.php
# function processPop ($server,$user,$password) {
# $port = $GLOBALS["bounce_mailbox_port"];
# #if (!$port) {
# #$port = '110/pop3/notls';
# $port = '995/pop3/ssl';
# #}
done!

$bounce_mailbox = '/var/spool/mail/listbounce';
$bounce_mailbox_purge = 1;
$bounce_unsubscribe_threshold = 5;


crontab:
30 * * * * /usr/bin/php /var/www/lists/admin/index.php -pprocessbounce -c/var/www/lists/config/config.php >/dev/null

Since nothing happens, I tried from the commandline directly:
/usr/bin/php /var/www/lists/admin/index.php -pprocessbounce -c/var/www/lists/config/config.php

Error: processbounce does not process commandline

What am I missing?

Re: bouncehandling from cron

PostPosted: 3:51pm, Fri 09 Jan, 2015
by ELMIT
Found it:

sudo php5enmod imap

Re: bouncehandling from cron

PostPosted: 8:37am, Sat 10 Jan, 2015
by ELMIT
I am still not there ;-(

While bounce handling works now with
define ("MANUALLY_PROCESS_BOUNCES",1);
Then I can start on Firefox bouncing, but it will stop with the next time out.

define ("MANUALLY_PROCESS_BOUNCES",0);
does not do anything.

If I try to use it from the command line:
/usr/bin/php /var/www/lists/admin/index.php -pprocessbounce -c/var/www/lists/config/config.php

I get:
Error: processbounce does not process commandline

What am I still missing????

Re: bouncehandling from cron

PostPosted: 10:30am, Sat 10 Jan, 2015
by duncanc
The page name is "processbounces" not "processbounce".

Re: bouncehandling from cron

PostPosted: 10:38am, Sat 10 Jan, 2015
by ELMIT
Thank you so much, ...