print friendly version

Questions and answers

How can I configure my mailing list so that ONLY Sussex people can subscribe to it?

  1. Open your list's admin web page (, where listname is the name of your mailing list).
  2. After having gained entry, click the Privacy Options link.
  3. Scroll down to the option box labelled "List of addresses which are banned from membership in this mailing list".
  4. Enter the following one-line expression, exactly as shown, into the box:


    (You might like to use your mouse to copy this expression (known as a regular expression) and paste it into the Mailman option box, to ensure an exact copy.  The expression means "any address not ending with")

  5. You might want to allow subscriptions from more than one organisation or mail domain.   Suppose for example that you want to allow addresses only from OR to subscribe.  Use this expression instead:


    You can see here that the two different parts of the two email domains are grouped together in parentheses, with a bar symbol (|) acting as an an 'or' operator between them, and the common part ( immediately follows the parentheses.   If the two email domains are completely different, specify the entire domains instead, for example


    The above expression means "any address not from or"

  6. Click the 'Submit Your Changes' button button to put this change into effect.
  7. Click the Logout link to close your admin page.

Note that this configuration will affect your ability to add addresses to your mailing list via the list's membership management admin page.  In other words, even as administrator you won't be able to manually add a 'banned' address to the list.

If you're fairly technically minded, you can find out more about Mailman regular expressions (using the Python language) at

Help us to improve this answer

Please suggest an improvement
(login needed, link opens in new window)

Your views are welcome and will help other readers of this page.


This is question number 1176, which appears in the following categories:

Created by Andy Clews on 9 September 2005 and last updated by Richard Byrom-Colburn on 29 September 2016