Page 1 of 1

Mail All Users

Posted: Tue Feb 05, 2008 9:15 pm
by propagandhi
Is there a way to mail all users in the system.

We have way too many new accounts to be constantly maintaining a group of every user in the system.

We want a way of either having all new users added to a group automatically, or of just mailing all users in the user database.

Can it be done? How?

Posted: Wed Feb 06, 2008 11:29 am
by mikethebike
Run a script each day to create a pdl, in that script you could use:

omaddpdl -l allusers/mailnode
omshowu -m all |while read name;do
omaddpdln -l allusers -n "$name" -x

For the updates, I would use thee lines

ommodent -e s=allusers -n dl-members=
omshowu -m all |while read name;do
omaddpdln -l allusers -n "$name" -x

Mick