• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

mailling list users

J

jinkt

Guest
hello,
i need a simple script do delete all users from mailinglist

is there any regexp in plesk ?

this isnt working :(

/usr/local/psa/bin/maillist -u name -domain damn.sk -members del:*
/usr/local/psa/bin/maillist: No match.
 
Wouldnt it be easier to simply remove (delete) the mailing list and then recreate it with no users ?
 
What settings? When I just created a test list the only ones I see is for a password and an admin email address, if thats all there is you could just retype them, if there are more settings then that let me know where they are :)
 
Hi,

You can create a list of all maillist users that should be deleted and write a script that will execute '/usr/local/psa/bin/maillist -u name -domain damn.sk -members del:MAIL_NAME' for all entries in list.
To get list of mail list members you can call maililst command with '-i' option:
maillist -i MailList -domain example.com
 
Back
Top