Mass mailing announcements

 August 14, 2014     0 Comments

There are a couple of considerations you have to take into account when sending announcements to a considerable number of customers, to avoid system lock up.
If you're using the SMTP option in ClientExec, you'll definitely have to enable the Bulk Mailer plugin. Otherwise CE will attempt to connect to the mail server for each message to be sent, which will cause a system time out, and only a handfull of messages will be sent. This might also happen when using the Sendmail method, under some Sendmail configurations.

On the other hand, when the Bulk Mailer service triggers, the mail server has to be appropiately configured to avoid it to overload the server.

Exim example

For the Exim mail server for example, you can make sure you have these statements in the configuration file:

queue_only_load = 3
deliver_queue_load_max = 3

This means that whenever the system load raises above 3, messages won't be delivered anymore but they'll be queued instead, and the queue won't be triggered until the load comes below that threshold. Notice that although you will prevent a system overload, the messages will be delivered little by little.

Monitoring the mail server

After the Bulk Mailer service is triggered you can monitor what exim is doing with the exiwhat command. That'll tell you which processes is exim running, and what are they doing. You can see how many e-mails there still are in queue with exim -bpc
And then there is of course the ps and uptime commands, that you can use to find out how much resources are those processes consuming and what is the system's overal load, respectively. 

How helpful was this article to you?

Posting has been disabled.