• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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