The mailing list package we use is Mailman.
This CS Guide page does not attempt to duplicate the Mailman documentation. Rather, it is a local guide designed to address frequently (or infrequently) asked questions regarding mailing list administration and configuration.
The Questions
The Answers
How do I limit membership to Princeton email addresses?
If want to restrict a membership in a mailing list to, say, email addresses in the princeton.edu domain (including ee.princeton.edu and cs.princeton.edu), enter the following regular expression in the mailing list's ban_list field (on the Privacy options page):
^.+@(?![^@]*princeton\.edu$)
If you want to strictly limit to just cs.princeton.edu, use this regular expression:
^.+@(?!cs\.princeton\.edu$)
What is the syntax for regular expressions?
Mailman is written in the Python Programming Language. As a consequence, the regular expressions used in Mailman are Python regular expressions. Documentation on the syntax can be found here.