move mailbox path to another harddisk

Discussion in 'Installation/Configuration' started by chico11mbit, Apr 11, 2017.

  1. chico11mbit

    chico11mbit Member

    Hi,
    we need to increment the space for our mailboxes because the internal hard disk is filling up. So we want to move the /var/vmail directory to an external hard disk like /mnt/harddisk/var/vmail.

    what is the best solution to do this flawlessly with postfix/dovecot and ispconfig 3.1?

    Best regards
    chico
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    mount the new hdd to /mnt
    stop postfix, dovecot and amavis
    mv /var/vmail/* to /mnt
    set the permissions on /mnt to vmail.vmail
    umount /mnt
    mount new hdd /var/vmail
    start postfix, dovecot and amavis
     
    ahrasis likes this.
  3. chico11mbit

    chico11mbit Member

    Ah ok,
    But what must i do if i want to use the new disk not only for postfix but also for /var/www ?
    So that I have /mnt/newdisk/var/vmail and /mnt/newdisk/var/www on this hard disk?
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    stop the webserver, move /var/www to the new hdd and mount the new hdd.
    new hdd:
    /var/vmail - mail
    /var/www - web
     

Share This Page