PDA

View Full Version : change mail folder out of /var (freebsd 7)



banko
12-23-2008, 04:06 AM
hi all,

i just started testing DA and found that DA use /var partition to keep all emails. how can i change this setting? (it is a new installation, so i do not mind if i have to re-install it.) i want to put it (all email) in a bigger partition. i.e. /usr

my system is FreeBSD 7.0

thank you,
pk

smtalk
12-23-2008, 04:20 AM
http://help.directadmin.com/item.php?id=143

banko
12-23-2008, 04:35 AM
thx. but that isn't it. i already installed using custombuild with dovecot. but during installation it forced me to use /var to store emails.

any suggestions how i can change the settings?

thanks.

smtalk
12-23-2008, 04:38 AM
Impossible. Dovecot uses Maildir format and all emails are stored in /home.

nobaloney
12-23-2008, 11:35 AM
I've moved the thread to the FreeBSD subforum; I hope it'll get some attention here from FreeBSD users.

Jeff

scsi
12-23-2008, 12:44 PM
If your running out of room on /var there isnt much you can do but move it to /usr/var



cp -rfp /var /usr/var
umount -f /var
rm -rf /var
ln -s /var /usr/var
var_partition=$(mount -v | grep -v 'devfs' | grep -iw '/var' | awk '{print $1}' | sed 's/\//\\\//g')
perl -pi -e "s/$var_partition/#$var_partition/" /etc/fstab
unset var_partition