How to Add the “Set Flag Moderated” Module to Mailman

Posted by

By default, we can set all members to “moderated” in Mailman via the Mailman Dashboard Admin. However, this configuration must be set individually for each member. So if you have 100 members, you’ll need to configure all 100 one by one.

To make it easier, I used the command line for the configuration. However, the “set moderated” feature is not yet available in Mailman. So I added the module using the following method:

Assuming Mailman is installed in /usr/local/mailman

cd /usr/local/mailman/bin
wget -c https://raw.githubusercontent.com/imanudin11/downloads/refs/heads/main/set_mod.py

Here are some examples using the set_mod module

/usr/local/mailman/bin/withlist -r set_mod NAMA-MILIS -s MEMBER-MILIS

example

/usr/local/mailman/bin/withlist -r set_mod allemployee -s [email protected]

Configure the setting to apply automatically for all members

/usr/local/mailman/bin/withlist -r set_mod allemployee -s -a

Here are some articles related to Mailman:

How To Integrating Zimbra with Mailman on CentOS
Zimbra Tips : Integrating Mailman Mailing List on Zimbra Multi Server
Mailman Tips : How To Migrate Mailman Mailing List

Good Luck 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.