DEV Community

nabbisen
nabbisen

Posted on

 

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

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.