Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Delete not used mail accounts

Discussion in 'E-mail Discussion' started by maxihost3, Aug 23, 2011.

  1. maxihost3

    maxihost3 Member
    PartnerNOC

    Joined:
    Jun 14, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    I would like to know if someone have any script to remove accounts not used (30 days is ok) and also remove content from the catch all e-mail after 30 days.

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You would like to remove email accounts that haven't been used for over 30 days? We had a similar request where the consensus was that removing user accounts would not be ideal for most customers, since you would be removing data that the customer might want without consent. I wouldn't personally be able to provide any such script to perform this action.

    For the catchall email address, you could reset it to :fail: so that emails aren't collected into it. Here is a prior post where I discussed doing this:

    http://forums.cpanel.net/f43/root-email-advise-208742.html#post857372

    I would not suggest removing emails already collected in that email account unless you've gotten consent to do so first.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. maxihost3

    maxihost3 Member
    PartnerNOC

    Joined:
    Jun 14, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    Hello,

    It was already set to fail.

    But my file /etc/valiases is just blank.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The /etc/valiases location is not a file but a folder containing a series of files by domain name such as /etc/valiases/mydomain.com and /etc/valiases/anotherdomain.com
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. maxihost3

    maxihost3 Member
    PartnerNOC

    Joined:
    Jun 14, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    Thanks. I did it. And how do I go through all the catch all accounts and remove its content ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice