First, create an alias such as
localusers: :include:/etc/mail/localusers,nobody
This little one liner should help. It will need to be modified to
fit your scenario, but should be mostly correct already. My redhat
distribution starts numbering admin created accounts at 500. I use
account numbers above 65000 to represent non-mail applications.
awk 'FS=":" {if(($3 >= 500 && $3 < 65000 )) print $1"@myhost.domain.com}' \
/etc/passwd > /etc/mail/localusers
Then just add localusers@myhost.domain.com to whatever list you want them
all to receive.
You can run the script as often as you like without impacting the
rest of the mailing list environment. Just remember when creating
new user accounts to set their uid between 500 and 65000.
Dan Liston
Mike Horton wrote:
> I have Majordomo set up and working just fine. What I need to know though,
> is if anyone knows of an easy way to get about 150 linux users all
> subscribed to the list without entering them all by hand. Is there some
> way to get Majordomo to look at my password file and add all the users
> automatically.
> Thank you
> Mike Horton
>
References:
|
|