How To Install And Configure Mailman (With Postfix) On Debian Squeeze - Page 2

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Sun, 2011-07-17 18:53. ::

5 Using Mailman

From now on, we can use the Mailman web interface to manage Mailman (with one exception - whenever you create a new mailing list, you have to add new aliases to /etc/aliases manually on the command line).

The admin interface can be reached on http://lists.example.com/admin - on that page you should find a link to the Mailman mailing list you created in chapter 4:

If you click on that link (http://lists.example.com/admin/mailman) you will get to the management page of the Mailman list, but first you have to log in with your password (that's the one you specified during the newlist command):

That's how the management page looks - from here you can...

... change the basic settings of the list...

... or moderate new messages (http://lists.example.com/mailman/admindb/mailman):

Users can go to http://lists.example.com/listinfo to get a list of all available mailing lists...

... or to http://lists.example.com/listinfo/mailman to go to a specific list (mailman in this example) where they can subscribe:

You as the admin can also create new lists using the web interface (on http://lists.example.com/create), but before you do this, run

mmsitepass mailman_password

on the command line because otherwise you will the error message Error: You are not authorized to create new mailing lists when you try to create a mailing list through the web interface (I suggest you use the same password - mailman_password - as in the newsite command in chapter 4).

To create a new list through the web interface, specify the name of the list and the owner's email address, specify a list password (or have the web interface generate one for you)...

... and at the bottom of the page, specify the password that you used with the mmsitepass command; then click on Create List:

In case of success, you should see the following page:

The list owner will also receive an email with instructions about how to modify /etc/aliases to make the list creation complete:

The mailing list `testlist1' has been created via the through-the-web
interface.  In order to complete the activation of this mailing list, the
proper /etc/aliases (or equivalent) file must be updated.  The program
`newaliases' may also have to be run.

Here are the entries for the /etc/aliases file:

testlist1:              "|/var/lib/mailman/mail/mailman post testlist1"
testlist1-admin:        "|/var/lib/mailman/mail/mailman admin testlist1"
testlist1-bounces:      "|/var/lib/mailman/mail/mailman bounces testlist1"
testlist1-confirm:      "|/var/lib/mailman/mail/mailman confirm testlist1"
testlist1-join:         "|/var/lib/mailman/mail/mailman join testlist1"
testlist1-leave:        "|/var/lib/mailman/mail/mailman leave testlist1"
testlist1-owner:        "|/var/lib/mailman/mail/mailman owner testlist1"
testlist1-request:      "|/var/lib/mailman/mail/mailman request testlist1"
testlist1-subscribe:    "|/var/lib/mailman/mail/mailman subscribe testlist1"
testlist1-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe testlist1"

Therefore open /etc/aliases...

vi /etc/aliases

... add the new aliases...

[...]
## testlist1 mailing list
testlist1:              "|/var/lib/mailman/mail/mailman post testlist1"
testlist1-admin:        "|/var/lib/mailman/mail/mailman admin testlist1"
testlist1-bounces:      "|/var/lib/mailman/mail/mailman bounces testlist1"
testlist1-confirm:      "|/var/lib/mailman/mail/mailman confirm testlist1"
testlist1-join:         "|/var/lib/mailman/mail/mailman join testlist1"
testlist1-leave:        "|/var/lib/mailman/mail/mailman leave testlist1"
testlist1-owner:        "|/var/lib/mailman/mail/mailman owner testlist1"
testlist1-request:      "|/var/lib/mailman/mail/mailman request testlist1"
testlist1-subscribe:    "|/var/lib/mailman/mail/mailman subscribe testlist1"
testlist1-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe testlist1"

... and run:

newaliases
/etc/init.d/postfix restart

Instead of using the Mailman web interface, you can also use the newlist command to create a new list, as shown in chapter 4:

newlist --urlhost=lists.example.com --emailhost=lists.example.com testlist2

root@server1:~# newlist --urlhost=lists.example.com --emailhost=lists.example.com testlist2
Enter the email of the person running the list:
 <-- sales@example.com
Initial testlist2 password: <-- testlist2_password
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## testlist2 mailing list
testlist2:              "|/var/lib/mailman/mail/mailman post testlist2"
testlist2-admin:        "|/var/lib/mailman/mail/mailman admin testlist2"
testlist2-bounces:      "|/var/lib/mailman/mail/mailman bounces testlist2"
testlist2-confirm:      "|/var/lib/mailman/mail/mailman confirm testlist2"
testlist2-join:         "|/var/lib/mailman/mail/mailman join testlist2"
testlist2-leave:        "|/var/lib/mailman/mail/mailman leave testlist2"
testlist2-owner:        "|/var/lib/mailman/mail/mailman owner testlist2"
testlist2-request:      "|/var/lib/mailman/mail/mailman request testlist2"
testlist2-subscribe:    "|/var/lib/mailman/mail/mailman subscribe testlist2"
testlist2-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe testlist2"

Hit enter to notify testlist2 owner...
 <-- ENTER

root@server1:~#

vi /etc/aliases

[...]
## testlist2 mailing list
testlist2:              "|/var/lib/mailman/mail/mailman post testlist2"
testlist2-admin:        "|/var/lib/mailman/mail/mailman admin testlist2"
testlist2-bounces:      "|/var/lib/mailman/mail/mailman bounces testlist2"
testlist2-confirm:      "|/var/lib/mailman/mail/mailman confirm testlist2"
testlist2-join:         "|/var/lib/mailman/mail/mailman join testlist2"
testlist2-leave:        "|/var/lib/mailman/mail/mailman leave testlist2"
testlist2-owner:        "|/var/lib/mailman/mail/mailman owner testlist2"
testlist2-request:      "|/var/lib/mailman/mail/mailman request testlist2"
testlist2-subscribe:    "|/var/lib/mailman/mail/mailman subscribe testlist2"
testlist2-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe testlist2"

newaliases
/etc/init.d/postfix restart

The email address of a new list is always <listname>@lists.example.com, e.g. testlist1@lists.example.com or testlist2@lists.example.com.

 

6 Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Tue, 2011-09-13 15:18.

Hi,

My mail list send automatic request mails but not receive list mail and send this.