Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th February 2008, 10:46
SirLancelot SirLancelot is offline
Member
 
Join Date: Jul 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 :

:~# mount
/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.
Many thanks.

Last edited by SirLancelot; 29th February 2008 at 19:32.
Reply With Quote
Sponsored Links
  #2  
Old 29th February 2008, 19:13
SirLancelot SirLancelot is offline
Member
 
Join Date: Jul 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK I figured it out. A bad case of unable to see the wood for the trees I think.
It's working perfectly as it is. I'd forgotten the fact that I had applied chmod 770 so only the user vmail could brows the directory. I temporarily set to 775 to test and all was fine. then set back to 770.
Reply With Quote
  #3  
Old 10th May 2008, 09:11
binjured binjured is offline
Junior Member
 
Join Date: Jun 2006
Posts: 17
Thanks: 3
Thanked 1 Time in 1 Post
Default

This may be a stupid question, but here goes:

This solution seems very thorough, but my only question is, can I use to manage mail for multiple domains? It seems like it was written in a manner to only accept/send mail via one domain, "example.com" in the how-to. I thought that using postfix w/ mysql and virtual domains lets me add multiple domains to this solution... is that still accurate? Is it as simple as creating the proper database entries after all is said and done?
Reply With Quote
  #4  
Old 11th May 2008, 22:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Quote:
Originally Posted by binjured
I thought that using postfix w/ mysql and virtual domains lets me add multiple domains to this solution...
You can use it for as many domains as you like.

Quote:
Originally Posted by binjured
Is it as simple as creating the proper database entries after all is said and done?
Yes.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
Question on Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) Horizon HOWTO-Related Questions 12 26th February 2008 20:22
Virtual Users and Domains with Postfix... Problems hackerkatt Server Operation 2 29th January 2008 21:27
Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) MisterVlad Server Operation 8 15th June 2007 18:29


All times are GMT +2. The time now is 22:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.