[Mailman-Users] newlist, rmlist, sendmail alias management

Todd Pfaff pfaff at edge.cis.mcmaster.ca
Fri Dec 3 05:07:16 CET 1999


On Thu, 2 Dec 1999 claw at kanga.nu wrote:

> This is correct.  `newlist` does not edit or change the aliases
> file.  It is up to you to do that manually. 
> 
> Why?
> 
> Different MTAs have different standards for handling alias files,
> and additionally different sites may (and often do) have very
> different configurations for the location and handling of their
> alias files.
> 
> In fact, there's an Exim stanza wandering about right now done by
> Nick Moffit that avoids the need entirely for an alias file for
> MailMan, but rather has Exim observe the presence of a
> ~mailman/lists/<listname>/config.db file and therefor determine that
> the list exists and all the addresses it needs.  Quite a cute job
> really.  No alias file to update, but idential operation.

can be done similarly for sendmail...

- as mailman admin user
cd ~mailman
touch aliases aliases.dir aliases.pag

- as root
cd ~mailman
chown root aliases.dir aliases.pag
edit /etc/mail/sendmail.cf and add a line like:
O AliasFile=dbm:/home/mailman/aliases

then, to create list, as mailman admin user:

cd ~mailman
./bin/newlist listname owner-email-address password 1 | tail +4 > aliases
newaliases

and to remove list:

cd ~mailman
./bin/rmlist [-a] listname
ed aliases << EOF
/^## listname mailing list/;.+7d
w
q
EOF
newaliases

--
Todd Pfaff                         \  Email: pfaff at mcmaster.ca
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132                              \  FAX: (905) 528-3773
McMaster University                   \
Hamilton, Ontario, Canada  L8S 4M1     \





More information about the Mailman-Users mailing list