Skip to main content

Delete original after forwarding

Comments

4 comments

  • cPanelMichael
    Hello :) You will likely need to manually compile a list of all of the email accounts that you to remove emails from when developing your custom script, unless there is some kind of matching pattern you can use to group the accounts (e.g. accounts starting with a specific letter). Once you have a list, you could develop a script similar to what's utilized on this thread: Having issues getting cron job to work Thank you.
    0
  • Manos Krokos
    thanks for that! In the meantime, I created a txt file with all accounts that are forwarded and then I compiled a script that deletes the inbox (cur) for these accounts. The script is run once a week.
    0
  • Ameya Barwe
    Is it possible to share the script here?
    0
  • Manos Krokos
    Sure, here it is The format for the txt file is: username;domain;user; where username is the master account username and user is the email account username. You can run this via cron as often as you wish.
    0

Please sign in to leave a comment.