300 messages an hour is one every twelve seconds. You could keep one large list and:
for ADR in $(cat address_list) do cat msg | mailx -S "whateva" $ADR sleep 14 # leave some breathing room for other emails you might send done Above given as an example of how you could do it in bash. It is not my recommended course of action. To go with the intent indicated by your email for LIST in $(ls lists_*) # whatever descriptor to list your lists do for ADR in $(cat $LIST) do cat msg | mailx -s "hot topic today" $ADR done sleep 1800 # 30 mins pause before next batch done Above given as an example of how you could do it in bash. It is not my recommended course of action. Maintenance of a mail list - that's worse than editing a bunch of files? On Thu, Jun 30, 2016 at 01:27:29PM -0700, Rich Shepard wrote: > On Thu, 30 Jun 2016, Paul Heinlein wrote: > > > Can you be a bit more explicit about steps 1 and 2? How many files are > > in play? How is the file (are the files) formatted? Is "address" a US > > Mail address? An e-mail address? A URL? > > Paul, > > Sure. > > I had to separate a single file into individual files of no more than 100 > e-mail addresses because 300 messages/hr is the limit of outbound relaying. > Each address file has it's own sending script: > > for x in $(cat news-send-1.list); do cat msg | mailx -s "[Newsletter] > Regulatory Science: Correctly Analyzing Censored Toxic Chemical > Concentrations" $x; done > > Then I created 'at' commands to invoke each script at 25-30 minute > intervals. > > Maintenance of the mail list became a hassle as folks added their names, > left their employer for points unknown, etc. Seems to me it's more efficient > to have all addresses in a single file then invoke the mailx script for each > group of 100 names until EOF with a suitable pause. > > > The looping structure will depend a great deal on how many files are > > in play and what mechanism is used to grab the address(es). > > It will make management easier with single address and script files. Then > a single 'at' command is all I need. > > Thanks, > > Rich > _______________________________________________ > PLUG mailing list > PLUG@lists.pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > -- Michael Rasmussen, Portland Oregon Be Appropriate && Follow Your Curiosity Time spent walking is utterly free. It's time you would have spent dead. ~ Alan Durning on the benefits of exercise _______________________________________________ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug