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.

How do you delete all the default emails with maildir?

Discussion in 'E-mail Discussions' started by DWHS.net, Aug 14, 2007.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    mbox had a file that you deleted in the mail folder but I can't seem to find a file for the default email.

    There is 30k emails in this account and it would take a life time doing it through webmail.

    Thanks!
     
  2. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Any ideas on this???
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The messages are in /home/user/mail/cur Each message is a single file. Deleting all the files from the command line will have similar effect as deleting the mbox. However, with 30K of files, don't do rm -f * as the shell expansion will be very slow.
     
  4. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Also after deleting the emails it would be a better idea to set the default address to :fail: to prevent this from happening.
     
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Perfect, thanks!

    I changed the default as well.

    Cheers :D
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    CMM would help with this as it's very quick at clearing down maildir files without destroying the maildir and courier file structure.
     
  7. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    I use CMM for this exact thing, and it's perfect. And very fast. :) Great script.

    :D Bailey
     
  8. johndoe

    johndoe Active Member

    Joined:
    May 26, 2002
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Modified version of CMM for hosting clients?

    Hello forum members,

    I have several hosting clients who have "multiple domain" accounts, and use cPanel. Yesterday I received a message from one of them about an email problem he was having. I went straight to his mail account and found the usual suspect - 6,000 messages hanging around doing nothing had used up his quota.

    The odd thing from my perspective is that this fellow has no forwarders conflicting with same name pop accounts - in fact, he has no forwarders at all. He claims that he's downloaded all those messages at one time or another, so I can't explain to him why they're still on the server (I did tell him to make sure "save messages on server" isn't checked in his mail software).

    In his last message he asked me if there is a way to set the mail program to automatically delete messages after a certain date. I don't know the answer.

    But searching the forum here, and finding this thread makes me wonder if there's a way I could add a stripped down account specific version of the CMM feature to his WHM. That might help him until I can see if I can discover a way to "auto-delete" messages after X number of days.

    I've been a loyal cPanel customer since 2001. Two things have remain constant since my introduction to cPanel:

    1. I love cPanel and everything about it.

    2. The more I learn, the less I know.

    Regards,

    JD
     
  9. johndoe

    johndoe Active Member

    Joined:
    May 26, 2002
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Modified version of CMM for hosting clients?

    Hello forum members,

    I have several hosting clients who have "multiple domain" accounts, and use cPanel with WHM. Yesterday I received a message from one of them about an email problem he was having. I went straight to his mail account and found the usual suspect - 6,000 messages hanging around doing nothing had used up his quota.

    The odd thing from my perspective is that this fellow has no forwarders conflicting with "same name" pop accounts - in fact, he has no forwarders at all. He claims that he's downloaded every one of those 6,000 messages at one time or another, so I can't explain to him why they're still on the server (I did tell him to make sure "save messages on server" isn't checked in his mail software).

    In his last message he asked me if there is a way to set the mail program to automatically delete messages after a certain date. I don't know the answer. Is there?

    Searching the forum here, and finding this thread makes me wonder if there's a way I could add a stripped down "account specific" version of the CMM feature to his WHM. That might help him until I can see if I can discover a way to "auto-delete" messages after X number of days.

    I've been a loyal cPanel customer since 2001. Two things have remained constant since my introduction to cPanel:

    1. I love cPanel and everything about it.

    2. The more I learn, the less I know.

    Regards,

    JD
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are they checking messages via IMAP or POP3? If they are using IMAP then there will be a setting in their mail client to discard deleted messages after X days.
     
    #10 cPanelDavidG, Aug 30, 2007
    Last edited: Aug 30, 2007
  11. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    When using IMAP, the default is to leave the messages on the server and download a copy to the local computer. This can easily give the appearance that all messages were downloaded, when they are not. As David noted, one would need to configure the mail client in question to actually remove the messages from the IMAP server after receipt.
     
Loading...

Share This Page