Great Circle Associates Majordomo-Users
(September 2003)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Adding users
From: Daniel Liston <dliston @ sonny . org>
Date: Fri, 12 Sep 2003 13:21:50 -0500
To: support @ klings . com, majordomo-users @ greatcircle . com
In-reply-to: <1490.12.222.115.101.1063339472.squirrel@shop.klings.com>
References: <1490.12.222.115.101.1063339472.squirrel@shop.klings.com>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030906

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:
Indexed By Date Previous: Re: Accuse de reception
From: Daniel Liston <dliston@sonny.org>
Next: Re: Resend issues with sendmail
From: Daniel Liston <dliston@sonny.org>
Indexed By Thread Previous: Re: Adding users
From: Alvin Oga <alvin@planet.fef.com>
Next: How to get bounced messages sent to sender and not just list owner.
From: Steve Rifkin <steve410@cs.jhu.edu>

Google
 
Search Internet Search www.greatcircle.com