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
 

banko

Verified User
Joined
Dec 23, 2008
Messages
5
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

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,791
Location
LT, EU
Impossible. Dovecot uses Maildir format and all emails are stored in /home.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
I've moved the thread to the FreeBSD subforum; I hope it'll get some attention here from FreeBSD users.

Jeff
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
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
 
Top