The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Delete not used mail accounts

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

  1. maxihost3

    maxihost3 Member
    PartnerNOC

    Joined:
    Jun 14, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  3. maxihost3

    maxihost3 Member
    PartnerNOC

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

    It was already set to fail.

    But my file /etc/valiases is just blank.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  5. maxihost3

    maxihost3 Member
    PartnerNOC

    Joined:
    Jun 14, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Thanks. I did it. And how do I go through all the catch all accounts and remove its content ?
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page