> Someone posted a script called mailtoall that read the passwd file and
> sent mail to everyone in it except certain ones. Dunno if it also did
> the users/assign boxes too, but it should be on www.qmail.org.
Hi.
I'm using my simple script:
#!/bin/sh
for i in `cat /etc/passwd | awk -F ':' '{ print $1 }'`;do
echo Sending to $i
cat $1 | /var/qmail/bin/qmail-inject -f nobody $i
done
As you can see - it's getting user name from /etc/passwd and 'touching'
message
on output through qmail-inject.
BR,
Mc.