Postfix mail storage to ext. Volume

  • Hi, is it possible to move the storage location for mails to an external volume.

    Example: /var/mail/virtual/{domains} e.g. to /mnt/Ext_Volume/{Domains}


    So I don't have to upgrade my server because of the 28 GB mails.

    I use postfix with dovecote


    Thanks ulrich

  • Just use a symlink (symbolic link).


    Code
    1. mv /var/mail/virtual /mnt/Ext_Volume
    2. ln -s /mnt/Ext_Volume /var/mail/virtual


    If you are not as lazy as me you can for sure stop mail service before the move and restart them afterwards.

  • Just use a symlink (symbolic link).


    Code
    1. mv /var/mail/virtual /mnt/Ext_Volume
    2. ln -s /mnt/Ext_Volume /var/mail/virtual


    If you are not as lazy as me you can for sure stop mail service before the move and restart them afterwards.

    I'll would favor a bind mount ;)


    1. Move all /var/mail data to the ext. storage

    2. Mount the ext. storage on /var/mail


    This should work perfectly. Some of my clients are doing this already, even for the /var/www directory.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206