Jamie Fargen's Weblog

How to find a user subscribed to a mailman list…

by on Sep.29, 2011, under Uncategorized

Recently I was tasked to determine if an email address was subscribed to any lists on the mailman server which I run. The solution came in two pieces.

1) Dump all of the list members to files named after the list, you can do that with the nifty one liner below.

root@localhost # for i in `./list_lists | awk ‘{ print $1 }’`; do ./list_members -o /root/members/$i $i; done

2) cd /root/members then simply grep for the users emails.

root@localhost # grep -r ‘users@emailaddress.com’ .


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...