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.

no longer hardlink inboxes to the old style mail format

Discussion in 'E-mail Discussions' started by jrehmer, Oct 6, 2004.

  1. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO
    Upgraded and noticed this in the changelog, but it appears that the hard links are not gone, is there a good script to remove them safely? There are over 100 directories atleast that would have to be deleted by hand on my server the way I'm doing it now, and I've got to find a better way.

    9.9.0 (build 72)
    no longer hardlink inboxes to the old style mail format

    Jesse Rehmer
    CEO Blue World Hosting
    www.blueworldhosting.com
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The following commands will do it. The last one will throw up a lot of errors, but should be OK. Use at your own risk!
    Code:
    rm -fv /home/*/mail/*/inbox*
    rmdir -v /home/*/mail/*
    
     
  3. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO
    Wouldn't the last line delete ALL the inboxes?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No. Because by using rmdir without -f it will only delete it if it's a directory match and the directory is empty. I've used it on our servers without problems, but as I said, use it at your own risk ;)
     
  5. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO
    Okay, I see now, as the directories I want to get rid of are now empty, so this works.

    Thanks for the help, it cleaned up the file system a bit atleast.
     
  6. Miss Jacky

    Miss Jacky Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    I noticed that when a new mailaccount is created, the double old style inbox is still created, with the hardlink. Is this something cpanel won't or didn't fix yet? I'm not on EDGE, but I didn't found anything on it in the latest changelog.

    Any comments welcome
     
  7. qwerty

    qwerty Well-Known Member

    Joined:
    Jan 21, 2003
    Messages:
    213
    Likes Received:
    0
    Trophy Points:
    16
    which version of cpanel and which OS? On the latest current C149 it doesn't create the old stuff for us anymore..
     
  8. Miss Jacky

    Miss Jacky Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    My bad :s, was mistaking in my cpanel version number... thought I had a newer version then 9.9.0 (build 72), but it ain't so... been so busy with other things I didn't know I was already far behind with cpanel updates :eek: Talk about a bad serveradmin :rolleyes:

    Thanks for replying anyhow

    regards
     
  9. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Will cpanel automatically remove the old (no longer needed by cpanel) folders and files, then? Or do we need to do this manually ourselves to free up space, etc?
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If they're still there, then you'll have to remove them yourself. See my second post in the thread ;)
     
  11. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Ya, I saw that. thanks! I'm just very paranoid about manually touching anything to do with cpanel...

    Are you 100% sure that these won't kill "real" email boxes? :eek: The "use at your own risk" disclaimer makes me nervous.

    I'd MUCH rather if cpanel would clean up their own mess, etc... :rolleyes:
     
  12. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    All I can say is that it worked for me. If you're unsure (and I would be) then log it in bugzilla and get them to do the dirty work :)
     
  13. Miss Jacky

    Miss Jacky Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    electric, if it makes you feel better, it worked for me too :)
     
Loading...

Share This Page