• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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