Full Mail Server Solution w/ Virtual Domains & Users (Debian Etch)
I thought I'd have a stab at building this on 2 xen boxes. All was going swimmingly until I came to configure the mx servers. I'm not sure if it's something that I've overlooked or if there are a couple of small errors in the guide, or a combination of both. I'll explain.
When I try to mount the /var/vmail NFS volume from the file server onto the mx servers the volume mounts just fine, but if I try to cd to /var/vmail I get
-bash: cd: /var/vmail: Permission denied
The volume is mounted though as can be seen from :
/dev/sda1 on / type ext3 (rw,errors=remount-ro,usrquota,grpquota)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
192.168.1.9:/var/vmail on /var/vmail type nfs (rw,addr=192.168.1.9)
In exports on the file server I have :
/var/vmail 192.168.1.12(ro,insecure,subtree_check) 192.168.1.4(ro,insecure,subtree_check) 192.168.1.7(rw,no_root_squash,subtree_check) 192.168.1.5(rw,no_root_squash,subtree_check)
and on the mx servers and the file server I have created the vmail user and directory with :
# useradd -r -u 150 -g mail -d /var/vmail -s /sbin/nologin -c "Virtual Mailbox" vmail
# mkdir /var/vmail
# chmod 770 /var/vmail/
# chown vmail:mail /var/vmail/
and also when configuring postfix I changed the line :
# postconf -e 'virtual_mailbox_base = /vmail'
to read :
# postconf -e 'virtual_mailbox_base = /var/vmail'
Any help would be most appreciated. As I've tried various different combinations of above to no avail.
Last edited by SirLancelot; 29th February 2008 at 20:32.