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.

mailman archives out of control

Discussion in 'E-mail Discussions' started by ttremain, Oct 10, 2011.

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    In several of my servers, the mailman archives take up 60%-80% of the backup space.

    How can I, as a server administrator, prune the older archives?

    My backup drive space is critical, at 94% :mad:
     
  2. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    43 views, and not a single reply? Help please!
     
  3. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    cd /usr/local/cpanel/3rdparty/mailman/archives/private/some_domain.com and remove the files in there.

    Then cd into the database/ dir and remove the corresponding items that you deleted above so there are no more links inside mailman to non-existant archives.

    The next question you might ask is why did it not clear the disk usage in the cPanel interface. That's a good question (if I do say so myself) and one I don't know the answer to since clearing cpanels ducache doesn't make a difference.
     
  4. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Inside: /usr/local/cpanel/3rdparty/mailman/archives/private/

    I see lots of folders, let's say they are: database_domain.com and database_domain.com.mbox

    database_domain.com/attachments/YYYYMMDD/d2343434/

    Where I find:
    attachment.doc
    attachment.html
    attachment.jpe

    So can I remove the YYYYMMDD folder or the attachments folder?

    I do not follow after that.. Where am I to go to remove corresponding items?
     
  5. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    If you remove the attachments its just going to remove the attachments in the archives. Above the attachments you will see the actual archives which you can delete the folders that are in date format. You might also see some gzip files in there and some txt files as well.
     
  6. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Ok back to answer my own question, once you remove those files and wonder why disk usage is still showing mailman files then you can clean the mailman cache with /scripts/update_mailman_cache or wait 4 hours for the cron to do it.
     
  7. minosjl

    minosjl Well-Known Member

    Joined:
    Jun 4, 2011
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    please run the script for update the mailman info and check again the disk usage.
     
  8. 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
    If you do what is being noted, please realize that you will be deleting user archives for mailman. It would be better to back up those archives and then .tar.gz them to the user's directory so they at least have a copy (or contact the user to ensure they are okay in losing their archives).

    Of note, you can always move the archives and symlink them to another partition. There's a discussion on doing that at this location:

    http://forums.cpanel.net/f189/full-usr-partition-167918.html#post699642
     
Loading...

Share This Page