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.

changing mail default path

Discussion in 'E-mail Discussions' started by wurlJAM, Oct 27, 2015.

  1. wurlJAM

    wurlJAM Registered

    Joined:
    Oct 27, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    hnd
    cPanel Access Level:
    Website Owner
    Hi there!
    Im hosting email service at bluehost.com, the thing is. The mail folder size limit is (30gb) and it's 90% full so we purchased more storage (60gb) so i need to.change the default mail storage route from

    /home/securka4/mail <- 30gb
    To
    /home/securka4/Mail <- 60gb
    The cpanel access is very limited so I'm connecting via ssh so far what I've researched I need to:

    Set the mail_location in conf.d/10-mail.conf as determined by the instructions in FindMailLocation.

    My question is... is my approach correct?
    I need to be 100% sure it will work to make the switch because the email service needs to be running all day, meaning I can't interrupt the service if I screw up.
     
  2. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I'd mount the 60GB in /home/securka4/mail instead, but I think you'd have a little downtime as you copied the data to a temp mount and re mounted it in the right place.
    Perhaps someone with more WHM experience will have a more elegant solution.
     
  3. wurlJAM

    wurlJAM Registered

    Joined:
    Oct 27, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    hnd
    cPanel Access Level:
    Website Owner
    ok so what i did was,


    1 rsync'ed both folders

    2 unmount /home/securka4/Mail <- 60gb

    3 mount /home/securka4/mail <- 30gb on /home/securka4/Mail

    4 mounted the 60gb drive on to /home/securka4/mail

    And that pretty much did it, thank you though I thought about that approach and tried it once, but i did it through cpanel and didn’t worked so entering through ssh did it
     
  4. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Cool beans.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page