Can the cli be used to add a member to multiple mailing lists from the CLI or also using csv file?

Hi,

I have to a member to about 20 Mailing lists or so. This is very long process via the Webmail UI. Can this be accomplished from the cli? Where I would run a command to add member XXX@ABC.COM to maillist list a,b,c,z,y,x?

Thanks
Dan

Hello,

You can create a custom script to achieve the desire behaviour for example you can use a while to read each mail list from a file and using nc utility to connect on cli to add the member.

Ex (all the mailing list are in the same domain):
{
echo -ne “user admin\r\n”
echo -ne “YOUR_ADMIN_PASSS\r\n”
echo -ne “update domain YOUR_DOMAIN\r\n”
while read -r listName
do
echo -ne “UPDATE List ${listName}\r\n”
echo -ne “ADD User MEMBER_EMAIL_ADDRESS name MEMBER_NAME\r\n”
echo -ne “done”
echo -ne “commit”
done < maillist_file.txt
echo -ne “QUIT\r\n”
} | nc 127.0.0.1 7000

*Note that I did not test the script.

Regards,
Florin