DEV Community

nabbisen
nabbisen

Posted on

3 2

Mailman: How to add members to a mailing list

Here is how to add members to GNU Mailman's lists with a plain text file.

* "Mailman" in this post means not Mailman 3 but Mailman 2, because I use OpenBSD.

The add_members command is the way.

Create a file to write members of a list in it. Its name is, for example, mailman-xxx.list:

user1@some.fqdn
user2@some.fqdn
user3@another.fqdn
...
Enter fullscreen mode Exit fullscreen mode

Run add_members for $LIST_NAME (replace this with your list's name):

# /usr/local/lib/mailman/bin/add_members \
    -r mailman-xxx.list $LIST_NAME \
    # disable to send welcome messages to new members \
    -w n
Enter fullscreen mode Exit fullscreen mode

Then, your members are printed as registration success:

Subscribed: user1@some.fqdn
Subscribed: user2@some.fqdn
Subscribed: user3@another.fqdn
...
Enter fullscreen mode Exit fullscreen mode

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay