change mail folder out of /var (freebsd 7)

banko

Verified User
Joined
Dec 23, 2008
Messages
5
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
 
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.
 
Impossible. Dovecot uses Maildir format and all emails are stored in /home.
 
I've moved the thread to the FreeBSD subforum; I hope it'll get some attention here from FreeBSD users.

Jeff
 
If your running out of room on /var there isnt much you can do but move it to /usr/var

Code:
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
 
Back
Top