Koozali.org: home of the SME Server

Sending eMails per Minute

Offline Bud

  • *
  • 487
  • +0/-0
Sending eMails per Minute
« on: February 09, 2018, 03:22:34 PM »
guys please can you help

i need to control the amount of email being sent via a sme 9.2 server at about 50 emails per minute

i am finding that if a user needs to do an email campaign to much email go out on a per minute hence how do i control the smtp server to send an allotted amount of emails per minute. The rest must stay in the que and another 50 emails from the queue be released every minute etc. etc.

can this be done on a sme  9.2 server?

any help greatly appreciated  :-)

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Sending eMails per Minute
« Reply #1 on: February 09, 2018, 04:16:36 PM »
AFAICS here (http://www.qmailwiki.org/Throttle) qmail has this feature but a patch is required.. I don't know if our qmail has this patch..

please, open a NFR in bugzilla, thank you

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Sending eMails per Minute
« Reply #2 on: February 10, 2018, 12:51:46 AM »
Alternatively use a proper bulk email system like phplist.

That can push mail via your local server but can rate limit the mail.

Needs updated PHP, but works perfectly.

It can also offer you proper subscribe/unsubscribe list management etc (you don't want to be consdered a spammer do you ??????)

Use the right tool for the job.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline brianr

  • *
  • 988
  • +2/-0
Re: Sending eMails per Minute
« Reply #3 on: February 10, 2018, 08:26:15 AM »
Alternatively use a proper bulk email system like phplist.

That can push mail via your local server but can rate limit the mail.

Needs updated PHP, but works perfectly.

It can also offer you proper subscribe/unsubscribe list management etc (you don't want to be consdered a spammer do you ??????)

Use the right tool for the job.

Or one of the web based ones - www.mailchimp,.com or www.icontact.com free accounts available for lists of a few thousand.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Sending eMails per Minute
« Reply #4 on: February 10, 2018, 03:22:11 PM »
You can use a hosted PhpList as well, though I have run it on SME in the 'Sky' for years.

But yes, there are loads of proper solutions available, and with GDPR round the corner they should be de facto for mailings and managing your contact lists.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Sending eMails per Minute
« Reply #5 on: February 10, 2018, 09:00:22 PM »
a trottle patch could be added to a qmail service, and I tried it.

only thing is I tried it on the contrib altqmail. the idea is that as we create chroot for the alternative qmail we can try more things like throtle or filter per domain.

I am about to reopen my test VM so I can finilize this work

there is only few chance we move this to the main qmail as it might influence a lot of people for only a little who could have benefit.

Offline Bud

  • *
  • 487
  • +0/-0
Re: Sending eMails per Minute
« Reply #6 on: February 11, 2018, 04:16:03 AM »
guys thank you for helping, much appreciated

Jean-Philippe Pialasse - i will be very interested in the throttle patch. will be looking out for that

ReetP - phplist is a very interesting option
i have tried to install the contrib but need to know if i must use the php56 or php71 version option in the management menu before i install phplist?
 i get the following error trying to install phplist

====================

[root@sme ~]# yum install --enablerepo=fws smeserver-phplist
Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.wiru.co.za
 * smeaddons: mirrors.rbx.opencare.nl
 * smeextras: mirrors.rbx.opencare.nl
 * smeos: mirrors.rbx.opencare.nl
 * smeupdates: mirrors.rbx.opencare.nl
 * updates: mirror.wiru.co.za
Resolving Dependencies
--> Running transaction check
---> Package smeserver-phplist.noarch 0:0.2.0-1.el6.fws will be installed
--> Processing Dependency: phplist >= 3.0.6 for package: smeserver-phplist-0.2.0-1.el6.fws.noarch
--> Processing Dependency: smeserver-webapps-common for package: smeserver-phplist-0.2.0-1.el6.fws.noarch
--> Running transaction check
---> Package phplist.noarch 0:3.2.4-1.el6.fws will be installed
---> Package smeserver-webapps-common.x86_64 0:0.3.2-1.el6.fws will be installed
--> Processing Dependency: smeserver-php-fpm for package: smeserver-webapps-common-0.3.2-1.el6.fws.x86_64
--> Processing Dependency: openssl-perl for package: smeserver-webapps-common-0.3.2-1.el6.fws.x86_64
--> Processing Dependency: mod_proxy_wstunnel for package: smeserver-webapps-common-0.3.2-1.el6.fws.x86_64
--> Running transaction check
---> Package mod_proxy_wstunnel.x86_64 0:0.1-1.el6.fws will be installed
---> Package openssl-perl.x86_64 0:1.0.1e-57.el6 will be installed
--> Processing Dependency: perl(WWW::Curl::Easy) for package: openssl-perl-1.0.1e-57.el6.x86_64
---> Package smeserver-php-fpm.x86_64 0:0.1.1-1.el6.fws will be installed
--> Processing Dependency: php71-php-xmlrpc for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php71-php-snmp for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php71-php-opcache for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php71-php-intl for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php71-php-fpm for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php70-php-xmlrpc for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php70-php-snmp for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php70-php-opcache for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php70-php-intl for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php70-php-fpm for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php56-php-xmlrpc for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php56-php-snmp for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php56-php-opcache for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php56-php-intl for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php56-php-fpm for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php-xmlrpc for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php-soap for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php-snmp for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php-opcache for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php-intl for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: php-fpm for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Processing Dependency: mod_fastcgi for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Running transaction check
---> Package mod_fastcgi.x86_64 0:2.4.6-3.el6.fws will be installed
---> Package perl-WWW-Curl.x86_64 0:4.09-4.el6 will be installed
---> Package php-fpm.x86_64 0:5.3.3-49.el6 will be installed
---> Package php-intl.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: libicuuc.so.42()(64bit) for package: php-intl-5.3.3-49.el6.x86_64
--> Processing Dependency: libicuio.so.42()(64bit) for package: php-intl-5.3.3-49.el6.x86_64
--> Processing Dependency: libicui18n.so.42()(64bit) for package: php-intl-5.3.3-49.el6.x86_64
--> Processing Dependency: libicudata.so.42()(64bit) for package: php-intl-5.3.3-49.el6.x86_64
---> Package php-snmp.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: net-snmp for package: php-snmp-5.3.3-49.el6.x86_64
---> Package php-soap.x86_64 0:5.3.3-49.el6 will be installed
---> Package php-xmlrpc.x86_64 0:5.3.3-49.el6 will be installed
---> Package php56-php-fpm.x86_64 0:5.6.33-1.el6.remi will be installed
---> Package php56-php-intl.x86_64 0:5.6.33-1.el6.remi will be installed
--> Processing Dependency: libicuuc.so.50()(64bit) for package: php56-php-intl-5.6.33-1.el6.remi.x86_64
--> Processing Dependency: libicuio.so.50()(64bit) for package: php56-php-intl-5.6.33-1.el6.remi.x86_64
--> Processing Dependency: libicui18n.so.50()(64bit) for package: php56-php-intl-5.6.33-1.el6.remi.x86_64
--> Processing Dependency: libicudata.so.50()(64bit) for package: php56-php-intl-5.6.33-1.el6.remi.x86_64
---> Package php56-php-opcache.x86_64 0:5.6.33-1.el6.remi will be installed
---> Package php56-php-snmp.x86_64 0:5.6.33-1.el6.remi will be installed
---> Package php56-php-xmlrpc.x86_64 0:5.6.33-1.el6.remi will be installed
---> Package php70-php-fpm.x86_64 0:7.0.27-1.el6.remi will be installed
---> Package php70-php-intl.x86_64 0:7.0.27-1.el6.remi will be installed
---> Package php70-php-opcache.x86_64 0:7.0.27-1.el6.remi will be installed
---> Package php70-php-snmp.x86_64 0:7.0.27-1.el6.remi will be installed
---> Package php70-php-xmlrpc.x86_64 0:7.0.27-1.el6.remi will be installed
---> Package php71-php-fpm.x86_64 0:7.1.14-1.el6.remi will be installed
---> Package php71-php-intl.x86_64 0:7.1.14-1.el6.remi will be installed
---> Package php71-php-opcache.x86_64 0:7.1.14-1.el6.remi will be installed
---> Package php71-php-snmp.x86_64 0:7.1.14-1.el6.remi will be installed
---> Package php71-php-xmlrpc.x86_64 0:7.1.14-1.el6.remi will be installed
---> Package smeserver-php-fpm.x86_64 0:0.1.1-1.el6.fws will be installed
--> Processing Dependency: php-opcache for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Running transaction check
---> Package libicu.x86_64 0:4.2.1-14.el6 will be installed
---> Package libicu-last.x86_64 0:50.1.2-11.el6.remi will be installed
---> Package net-snmp.x86_64 1:5.5-60.el6 will be installed
---> Package smeserver-php-fpm.x86_64 0:0.1.1-1.el6.fws will be installed
--> Processing Dependency: php-opcache for package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64
--> Finished Dependency Resolution
Error: Package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64 (fws)
           Requires: php-opcache
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

====================

any idea what i can do?
 
« Last Edit: February 11, 2018, 05:04:57 AM by Bud »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Sending eMails per Minute
« Reply #7 on: February 11, 2018, 10:12:41 AM »
Bud I think at least 5.6

Personally I have manual install. However I think your error is a bug.

Can you open one so Dan can take a look and we'll try and find you a solution PDQ (have friends over so a but tied up right now) ?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Sending eMails per Minute
« Reply #8 on: February 11, 2018, 04:22:19 PM »
Bud

Search the forums on Concurrency. & go back a few/many years.
There are a couple of very easily implemented db settings that control mail flow.
It/they should schieve the same/similar result you are after.

If you cannot find a result, reply here & I will search for you.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Sending eMails per Minute
« Reply #10 on: February 11, 2018, 05:12:38 PM »
Janet,

Concurency only limit the number of simultaneous connexions. Even if you set it to 1, you still can overeach 50 per minute rate. Bud was pointing an issue of rate. I lived this issue with some providers.