The problem with shipping mails using CRON jobs

Hi everyone,
My problem I suspect is very simple, because I do not know quite so well for PHP.
Note: My English language is poor, sorry …
My server to VPS

The problem is that I can not send a second campaign. The first campaign of 20,000 e-mails were sent - no problem. Today we are trying to send a second campaign and something I do not want to send it. Shipping is done through CRON.

CRON settings:

  • / 5 * * * * USER=listprocessor; export USER; /usr/local/php54/bin/php /home/admin/domains/promo-mix.pl/public_html/lists/admin/index.php -pprocessqueue -c/home/admin/domains/promo-mix.pl/public_html/lists/config/config.php

They come only e-mails such as:
PHPlist version 3.3.0 © 2000-2017 PHPlist Ltd, http://www.phplist.com
PHPlist - A process for this page is already running and it was still alive 199 seconds ago
PHPlist - Running commandline, quitting. We’ll find out what to do in the next run.

after 5 minutes the next mail:
PHPlist version 3.3.0 © 2000-2017 PHPlist Ltd, http://www.phplist.com
PHPlist - A process for this page is already running and it was still alive 399 seconds ago
PHPlist - Running commandline, quitting. We’ll find out what to do in the next run.

the following minutes:
PHPlist version 3.3.0 © 2000-2017 PHPlist Ltd, http://www.phplist.com
PHPlist - A process for this page is already running and it was still alive 599 seconds ago
PHPlist - Running commandline, quitting. We’ll find out what to do in the next run.

Only on the second day of the campaign will be launched through CRON.

Configuration File: config_extended.php
define ( ‘MAX_PROCESS_MESSAGE’, 999);
define ( ‘MAILQUEUE_BATCH_SIZE’, 0);
define ( ‘MAILQUEUE_BATCH_PERIOD’, 0);
define ( ‘MAILQUEUE_THROTTLE’, 1);
define ( ‘MAILQUEUE_AUTOTHROTTLE’, 0);
define ( ‘USE_DOMAIN_THROTTLE’, 0);
define ( ‘DOMAIN_BATCH_SIZE’, 1);
define ( ‘DOMAIN_BATCH_PERIOD’, 120);
define ( ‘DOMAIN_AUTO_THROTTLE’, 10);
define ( ‘MAX_PROCESSQUEUE_TIME’, 3);

Is there any idea to solve this?

Your define ( ‘MAILQUEUE_BATCH_PERIOD’, 0); is telling the system to send for as long as it takes to go through the list.

So it will keep sending until your message has been sent to everyone on the list(s) you are sending to.

If your system ever stops sending before it is finished, then the cron job will start the sending where it left off.

I your case, the cron job sees that the sending process is still running, and it will not start a new sending process while that is going on.

Nothing is wrong with your system… it’s working as configured.

1 Like

Ok, thanks for the explanation.

I have a question:
Is it possible to set not to lent the same e-mails to the list, when it is already on another list?
I mean, that there is no duplicate emails in other lists. To address such user@domena.eu was only on jedej list and added to by subsequent lists.

whether it is an option that does not duplicate e-mails to other mailing lists?

@D4NI3L You might want to enable USE_LIST_EXCLUDE, then when composing a campaign you can select lists to which the subscriber must not belong. Look in config_extended.php for the setting then copy to your config.php file.

But if someone belong to two lists, and you send the same campaign to both lists, then phplist will send the email only once to that subscriber.

1 Like

and how to adjust to not lent mails that are on a different list?

@D4NI3L Sorry, I don’t understand what you mean.

I have 2 list.

1 list of addresses:
daniel@gmail.com
tomas@gmail.com

and 2 list which is empty

Now when you want to import a list of e-mails to the 2:
sandra@gmail.com
miachel@gmail.com
tomas@gmail.com

I import all emails. A I care not to tomas@gmail.com added, for example, is already on the list 1.

My English is poor. How can something another way to explain :slight_smile:

@D4NI3L Why do you think having tomas@gmail.com on two lists is a problem? What difficulty does that create?

I have still a problem with shipping campaign.

Yesterday I added at 18:00 campaign - 17000 e-mails

Today, it looks 12:00, that sent so far only: 7011 emails

What should I be correct in Configure your config?

define(‘MANUALLY_PROCESS_QUEUE’, 0);
define(‘MAX_PROCESS_MESSAGE’, 999);
define(‘MAILQUEUE_BATCH_SIZE’, 0);
define(‘MAILQUEUE_BATCH_PERIOD’, 0);
define(‘MAILQUEUE_THROTTLE’, 0);
define(‘MAILQUEUE_AUTOTHROTTLE’, 0);
define(‘USE_DOMAIN_THROTTLE’, 0);
define(‘DOMAIN_BATCH_SIZE’, 1);
define(‘DOMAIN_BATCH_PERIOD’, 120);
define(‘DOMAIN_AUTO_THROTTLE’, 1);
define(‘MAX_PROCESSQUEUE_TIME’, 0);

The following events occured while processing the message queue:

[Sat 25 Feb 2017 11:51] [CL] Started
[Sat 25 Feb 2017 11:51] [CL] Processing has started,
[Sat 25 Feb 2017 11:51] [CL] One campaign to process.
[Sat 25 Feb 2017 11:51] [CL] Processing message 31
[Sat 25 Feb 2017 11:51] [CL] Looking for subscribers
[Sat 25 Feb 2017 11:51] [CL] Found them: 9251 to process
[Sat 25 Feb 2017 11:51] [CL] Processed 1 out of 9251 subscribers
[Sat 25 Feb 2017 11:51] [CL] Script stage: 5
[Sat 25 Feb 2017 11:51] [CL] 1 messages sent in 10313.36 seconds (0 msgs/hr)

last mail info from cron:

phpList version 3.3.0 (c) 2000-2017 phpList Ltd, http://www.phplist.com
phpList - Giving a UUID to 152628 subscribers, this may take a while
phpList - Started [10312.0966090000] (152740)
phpList - Processing has started, [0.0004850000] (152743)
phpList - One campaign to process. [0.0388030000] (152745)
phpList - Processing message 31 [0.0659740000] (152761)
phpList - Looking for subscribers [0.0978140000] (152766)
phpList - Found them: 9251 to process [0.0916000000] (152772)
phpList - sent 1 ETA Thu 5 Mar 14:49 sending 0 msg/hr
phpList - queue processing has exceeded maximum processing time3
phpList - Processed 1 out of 9251 subscribers [0.9270530000] (152814)
phpList - Script stage: 5 [0.0370580000] (152816)
phpList - 1 messages sent in 10313.36 seconds (0 msgs/hr) [0.0006040000] (152819)
phpList - Finished this run [0.2141040000] (152828)

what I need to set to receive email notifications in the system PHPlist of returns undelivered mail?

do you need to create a crom job to do that? (process bounces)?

anyone has an example on this cron?