[PLUG] Automating mailings at intervals of 1 hour

Galen Seitz galens at seitzassoc.com
Fri Feb 12 03:18:23 UTC 2016


On 02/11/16 16:10, Rich Shepard wrote:
>    I have several hundred newsletter subscribers and, because my outbound
> mail needs to be relayed via my ISP's mail server there's a limit of 100
> messages/hour per IP address.
> 
>    To accommodate this limit I've partitioned the address list in chunks of
> 100 addresses each and done the same with the mailx scripts (which requires
> me to edit the subject line for each script). What I'd like is to have a
> wrapper script that would be fed to 'at' and 1) enter the newsletter e-mail
> subject line on each mailx script and 2) send subsequent chunks at hourly
> intervals. Cron is not appropriate because newsletters are written and
> distributed irregularly.
> 
>    A pointer to what I should read to learn how to accomplish this is what I
> need.

You're running Postfix, correct?  Why not let Postfix handle this?

I assume you are relaying through Spiritone.  I think that in this
context all of your deliveries are to the same destination since you are
using a relay.
<http://www.postfix.org/postconf.5.html#default_destination_rate_delay>

Note that I've never tried anything like this myself.  It just seems to
me that with all the knobs that Postfix has, one of them ought to do
what you want.


galen
-- 
Galen Seitz
galens at seitzassoc.com



More information about the PLUG mailing list