also sprach Petre Daniel <dani@cyber.ro> [2001.12.26.1255 +0100]:
> I need a script that if run,checks all /home accounts and put them like
> account@my.host.edu in the .forward of my email-broadcast-account.
are they all in /home/ ?
grep \/home\/ /etc/passwd | cut -d: -f1 | while read i; do
echo "$i@my.host.edu"
done
will give you a giant list that you can use.
> Or is there another simple way?
.forward isn't really the way to do this. you either use
/etc/aliases.db with a file as destination, the file containing one
address per line, or you get a mailing list? even installing your own
mailinlist manager isn't hard - i'd suggest mailman...
--
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
breakfast.com halted - cereal port not responding.
Attachment:
pgpUibW4j3ovm.pgp
Description: PGP signature