1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice
  1. AndreasK

    AndreasK Regular Pleskian

    26
    23%
    Joined:
    Sep 6, 2006
    Messages:
    173
    Likes Received:
    0
    Hello,

    we have 2500 mail address that we can delte now! What is the best way to kick them from server?

    Greets

    AndreasK
     
  2. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    Probably the best way is to automate the process using Plesk Creation Utilities. There is a tool for removing mailboxes, you can use it in your custom script.
     
  3. AndreasK

    AndreasK Regular Pleskian

    26
    23%
    Joined:
    Sep 6, 2006
    Messages:
    173
    Likes Received:
    0
    We dont have a script for this...
    Can i download it?
     
  4. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
  5. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    So you need to make a call
    Code:
    # ./mail --remove [email]admin@example.com[/email]
    for 2500 times.

    You can create a file listing all emails each on na new line:
    Code:
    [email]email1@domain1.com[/email]
    [email]email2@domain2.com[/email]
    ...
    
    and then do the following call
    Code:
    cat emails.txt | xargs -l1 ./mail --remove
    Try it on small amount of emails first.
     
  6. AndreasK

    AndreasK Regular Pleskian

    26
    23%
    Joined:
    Sep 6, 2006
    Messages:
    173
    Likes Received:
    0
    Hi,
    yes i will try it!

    But where i can see all emails?
    I will delete only mailboxes with suma@all-my-domains.com!

    AndreasK
     
  7. AndreasK

    AndreasK Regular Pleskian

    26
    23%
    Joined:
    Sep 6, 2006
    Messages:
    173
    Likes Received:
    0
    It works... Thx :)
     
  8. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    Glad to help you!
     
Loading...