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

On this page

  1. 5 Using Mailman
  2. 6 Links

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 - on that page you should find a link to the Mailman mailing list you created in chapter 4:

If you click on that link ( 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 (

Users can go to to get a list of all available mailing lists...

... or to 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, 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:

/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 testlist2

[email protected]:~# newlist testlist2
Enter the email of the person running the list:
 <-- [email protected]
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

[email protected]:~#

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"

/etc/init.d/postfix restart

The email address of a new list is always <listname>, e.g. [email protected] or [email protected].


Share this page:

1 Comment(s)

Add comment

Please register in our forum first to comment.


By: Anonymous


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