[Mailman-Users] How to to automatically add users..?
jonc at nc.rr.com
Mon Oct 21 04:31:12 CEST 2002
You would copy the script to a file and then make the file executable:
chmod a+x <filename>
Then you would run the file nightly as either the user root or the user
mailman. To do this as the mailman user you would:
This will let you edit the crontab for mailman. The following line added to
the crontab would run the file ~mailman/localuser_sync (assuming you saved
the script given in the last email into that file) at 2:05am every night:
5 2 * * * ~mailman/localuser_sync
Good Luck - Jon Carnes
----- Original Message -----
From: "Ciolo_-^DusT^-_WebMaster" <cioloweb at tiscali.it>
To: "Jon Carnes" <jonc at nc.rr.com>
Sent: Sunday, October 20, 2002 12:39 PM
Subject: Re: [Mailman-Users] How to to automatically add users..?
> Excuse me... I'm not so skilled yet... I'm just at the beginning...
> Where I have to use or put or write this script???
> grazie > thanx
> > local mailman list called "localusers".
> > USERS=`cat /etc/passwd |sed -n "30,$ p"| cut -f1 -d: `
> > for i in $USERS
> > do
> > echo $i at mydomain.com > ~mailman/localusers.txt
> > done
> > ~mailman/bin/sync_members -f ~mailman/localusers.txt localusers
More information about the Mailman-Users