Thursday, July 3, 2008

HOWTO : Add members to a mailing list from the shell

Once client provided me almost 2 thousand of email addresses to add them in mailing list named “test_test.com”

Steps used:-
1) cd /home/username
2) pico list.txt
3) Copy that addresses and paste in file list.txt
4) Save the file
5) cat /home/username/list.txt | grep '@' > list1.txt
Note:- This step is just to avoid blank spaces and lines between the addresses if any
6) cd /usr/local/cpanel/3rdparty/mailman/bin
7) ./add_members -r /home/username/list1.txt test_test.com

You will find more scripts such as change_pw, list_members, remove_members, rmlist at path '/usr/local/cpanel/3rdparty/mailman/bin.'

No comments: