Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Mike Hutchinson (packetlossping.net.nz)
Date: Thu Jun 03 2010 - 17:52:02 CDT
> > Currently we use postfixadmin for this, but this is undesirable as it
> > often double-up or triple-up entire sends (we intend to fix this,
> > eventually). I know the previous system we used was basically a script
> > copied a file into everyone's Inbox under their Maildir folder - we no
> > longer have the script, so that idea is out.
> This is not a postfix question.
Yes, but postfix people will know how to do it :) - sorry for hijacking the
list. Thanks for the reply, anyway!
> However, a script is almost certainly the easiest way to do this, and it's
> trivial if all your users are using Maildirs.
> I use something like this (run via cron out of the user's own crontab)
> ORG="Name of our company/Organization"
> BODY="text of the email I want to send"
> DATE=`date '+%a, %d %b %Y %T %z'`
> echo "Subject: This is my broadcast email"; \
> echo "Date: $DATE"; \
> echo "From: $ORG Broadcast Service <broadcastourdomain.tld>";\
> echo ; \
> echo "$BODY") | /usr/local/maildrop -d
I must admit, I've not seen people do mail broadcasts from Cron before -
> maildrop makes putting mail into maildirs trivial if you're using Courier.
> you're using something else. well, I'm sure there's something similar.
> best bet is to ask this on the list for your mail package.
Well, we ended up using getting a Perl wizard to assist. We're now using a
perl script, pulling real Mail addresses from MySQL, and using a Perl Mail
module to submit the mail into the postfix queue. As this system hosts under
1000 mail addresses, we don't have to worry about message copies so much. If
this box was hosting a couple of thousand mailboxes, I'd say we'd have gone
with linking the broadcast message into their Inbox, to save mail delivery
routines and load.
At any rate, we've got what we need now. I thought I'd better be polite and
post the script we're now using, as someone else may find it useful:
Credit goes to Bjorn Nilsen for writing the script.
Manux Solutions Limited