> > Currently we use postfixadmin for this, but this is undesirable as it will > > 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 that > > 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.
[Michael Hutchinson] 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 quite > 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 <broadc...@ourdomain.tld>";\ > echo ; \ > echo "$BODY") | /usr/local/maildrop -d > [Michael Hutchinson] I must admit, I've not seen people do mail broadcasts from Cron before - quite clever. > maildrop makes putting mail into maildirs trivial if you're using Courier. If > you're using something else. well, I'm sure there's something similar. Your > best bet is to ask this on the list for your mail package. [Michael Hutchinson] 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: http://pastebin.com/6PDAwRzq Credit goes to Bjorn Nilsen for writing the script. Cheers, Michael Hutchinson Manux Solutions Limited mhutchin...@manux.co.nz