In Courier, AuthUserDB or UserDB is a means for setting up virtual accounts. These accounts have an associated home directory and Maildir somewhere on disk. They also have a password to allow login. Normally, you would use UserDB to create mail accounts for people who you wouldn't want to have shell access to the system like if you are an ISP. UserDB is how we connect Courier to Mailman.
First edit /etc/courier/authdaemonrc and find the line authmodulelist=" .... "
Change that line and add authuserdb as one of the authentication modules.
Note: By enabling authuserdb, courier will now try to read /etc/passwd when looking for accounts. Make sure your mailing list address doesnt share the same name as anything it /etc/passwd.
Create or edit the file /etc/courier/userdb and add an entry of the following form:
mylist home=/root/Mailing-Lists/mylist|uid=12|gid=12
Note: there is a tab after mylist.
The uid and gid listed must correspond to the username and group you chomoded /root/Mailing-Lists/mylist to. To find out what the uid and gid are, use the command: "id username" if it is available on your system.
See "man makeuserdb" for more info.
In the directory /etc/courier issue the following:
userdbpw -md5 | userdb mylist set systempw
This will prompt you for a password. Set it to something long and random. You don't need to know it. This is only so someone won't log into your mail server as your mailing list user.
Issue the command:
makeuserdb
If the command doesnt complain, AuthUserDB and your userdb should be set up.
Maybe try sending an email to mylist-owner@yourdomain and see if it goes through.
4. Make the mailing list
Use the command "newlist" to make the mailing list. That's prety much it. You might want to set up some Apache configuration stuff as suggested by mailman.
Misc Info
If you found this document useful, please e-mail me and let me know. Also send in any corrections or mistakes. Special thanks to all who write open source software and Sam Varshavchik whose help on the courier mailing list helped me figure most of this out.