- Discard any message from an email name that does not end in "virginia.edu". (The admin of the list can optionally get a notice of all discarded messages.
- Hold all other messages for the administrator to approve. The burden on the administrator is that s/he must approve all messages posted to the list, including those from members. But this will keep all spam (including the ones with spoofed email IDs) from going out to all members of your list. (This solution might be good for low-traffic lists where letting any spam through causes problems, perhaps by annoying a lot of people or some important people.)
Spam on Mailman Lists
To reduce or eliminate spam on mailing lists when using Mailman
The following steps will do two things in mailman:
What to do in the mailman admin interface:
- Under "Privacy options..." choose "Sender Filters".
- The first item (for the value default_member_moderation) should be set to "yes".
- On the same page, find the item: List of non-member addresses whose postings will be immediately held for moderation. In the box, enter this regular expression: ^.*virginia\.edu$
- On the same page, for the next to the last item (generic_nonmember_action), set this to "Discard".
- On the same page, for the last item, set this to "yes" if the admin wants to get emails with each message from those that are automatically discarded because they are not from a "virginia.edu" address. (Might be a reasonable thing to do if there is a chance that a legitimate message from outside virginia.edu will come to the list.)
- Click "Submit your Changes".
- At the top of the page, choose "Membership Management".
- At the bottom of the page, for the option "Set everyone's moderation bit, including those members not currently visible", click "yes" and then hit the "Set" button.