#1  
Old 26th November 2009, 01:05
shdwdrgn shdwdrgn is offline
Junior Member
 
Join Date: Nov 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maildir path problems

I'm trying to contain my virtual users within the home directory to keep ispconfig compatible with the existing structure on my network. I tried setting Maildir Path to "/home/[domain]/[localpart]", however when I created new mailboxes, they were still appearing in /var/vmail/. Attempting to work around this, I deleted /var/vmail and recreated it as a link to /home/. If there's a way to make the option work properly, please let me know...

Continuing on this point, however, I had to modify the domain directories as such:
Code:
# chown root.vmail /home/domain.com/
# chmod 775 /home/domain.com.
Now when I create the mailbox, the user folder appears as I wanted. The next problem was a permission issue with maildrop.
Code:
postfix/pipe[5358]: 318FA22C2E: to=<user@domain.com>, relay=maildrop, delay=44101, delays=44101/0.23/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Home directory owned by wrong user. )
I had to chown vmail.vmail /home/ in order to get past this error. Again, I would appreciate any suggestions on a better way to fix this, as /home/ should be owned by root.

And now for the current problem. The virtual user folders are being created, the maildir folders are in place and owned by vmail, and syslog shows the welcome email being sent and delivered to the mailbox... but there are no emails appearing. I can log into the account via thunderbird, and I have checked the new and cur folders for the email, but it's not there. I have no idea how to troubleshoot virtual users (my network currently uses LDAP, which apparently ispconfig does not support?), so I'm at a loss as to where to start on this one.

Details about my setup...
Ubuntu 9.10
New install followed this guide: http://www.howtoforge.com/perfect-se...10-ispconfig-3
* The mySQL server is on another machine, not local... the proper IP was entered during setup to point to the mySQL server
Apache2 / Postfix / Courier

Ask if you need anything else. And thanks for the help.
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2009, 08:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

All mail directories have to be owned by user and group vmail.

using /home as directorie for the virtual mail users is not a good choice, as you will have to change the home directory of the vmail user in /etc/passwd to /home now and then copy the .mailfilter file from /var/vmail to /home/ and then edit the pthas in the .mailfilter file too. You will also have to edit the paths to the mailboxes in the mail_user database table etc. I can only recommend to not do these changes as you will only mess up your system.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 26th November 2009, 09:25
shdwdrgn shdwdrgn is offline
Junior Member
 
Join Date: Nov 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't have the option of changing the structure of my existing directory setup, as that would require reconfiguring every other server on the network. The idea was to mimic the existing directory structure, and when it looked like it was working, connect to the shared home drive so that the existing user data would be right where it's expected.

One issue I see with this is that all these virtual users have the same gid/uid. Why must ispconfig create virtual users? Can I change something so that all mailboxes are real users with a unique gid/uid, and use pam-mysql to resolve these accounts? This is how ldap user accounts work, and it's been very reliable over the last few years.

You mentioned a mailfilter file from /var/vmail/... Apparently I lost that file when I removed the original /var/vmail. Could you please tell me where I can get the file from again (I assume it's somewhere in the ispconfig source)?
Reply With Quote
  #4  
Old 26th November 2009, 09:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
Why must ispconfig create virtual users?
This has many benefits e.g. that you can use the email address as username. Most new large scale ISP mail systems use virtual users. Using real linux users is only used on office systems where you also need sambe shares etc. or wether your users shall be able to login on the shell with the same account.

Quote:
Can I change something so that all mailboxes are real users with a unique gid/uid, and use pam-mysql to resolve these accounts?
No. Not without changing a lot of things in the ispconfig sources.

As you dont want to use to manage your system with ispconfig, why did you install it instead of setting up a ldap based mailsystem manually?

Quote:
You mentioned a mailfilter file from /var/vmail/... Apparently I lost that file when I removed the original /var/vmail. Could you please tell me where I can get the file from again (I assume it's somewhere in the ispconfig source)?
The file is in install/tpl/mailfilter.master

You have to replave {dist_postfix_vmail_mailbox_base} with /home
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 26th November 2009, 20:53
shdwdrgn shdwdrgn is offline
Junior Member
 
Join Date: Nov 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for the info on the mailfilter file. Looks like that was the problem, as my test emails are now being delivered and showing up in both thunderbird and squirrelmail. I had a lot of files to touch up, since my full path is /home/domain.com/username/.Maildir/ but it's working great now.

I've started poking at the website stuff. It was a lot easier to get working on the directory path I wanted, but I have one small question here. The website pages default to being created in the /domain/web/ folder. Is there some place I can change this so ispconfig instead uses a /domain/www/ folder?

You asked why I installed ispconfig instead of using ldap to manage my users... It's because I'm trying to find some kind of unified system to manage user accounts, web sites, and dns settings. My network is still small enough that I *can* convert the user base over to something new, but I am working on a live network so I need to keep things such as the directory structure the same during the crossover. From what I've seen, ispconfig is the best of the CP's I've tested. It has the potential to handle everything within my own personal structures, I just need to learn more of how it works and decide what items I need to adjust to ispconfig's structure, and what items I simply need to make code changes for in order to be more flexible to my needs.
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
Failover with VMWare Server - /var/vm isn't the right size.. Bart van Kleef HOWTO-Related Questions 24 30th August 2008 12:00
Maildir problems... imapd cant see the maildir of user vargadanis Installation/Configuration 2 22nd April 2008 17:57
debian etch courier pop3 issue docean Installation/Configuration 6 20th March 2008 16:38
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 10:11
Full path name problems The General General 2 12th April 2007 13:14


All times are GMT +2. The time now is 19:38.


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