#1  
Old 31st October 2008, 17:50
skeldof skeldof is offline
Junior Member
 
Join Date: Oct 2008
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Default ISPC3 SVN postfix mess?

I'm not sure if I messed up something during the install of SVN ISPC3 (r490) but the mail delivery is not working correctly.

I admit I modified the config (in the web gui) to use /var/vmail instead of /home/vmail. I created a test Client, Email domain (test2.com) and Email Mailbox test2@test2.com. The folder structure /var/vmail/test2.com/test2/[cur,new,tmp] was created (no Maildir folder?)

When I send a mail locally postfix dumps it into /var/vmail/Maildir mbox file.

I logged in to IMAP using Thunderbird and was met with an empty Inbox. Deleted folder was displayed as a subfolder of Inbox.

Courier had created the folder courierimapkeywords and files courierimapsubscribed and courierimapuiddb, within /var/vmail/test2.com/test2/

I'm used to working with exim4 and dovecot, so have no idea where to start debugging why postfix (or maildrop, or however it all fits together) doesn't deliver to the correct place or why .Trash appears as a subfolder to Inbox.
Reply With Quote
Sponsored Links
  #2  
Old 31st October 2008, 21:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

It is possible that /var/maildir is not working correctly. I recommend to iuninstall ISPConfig 3 and reinstall it withour modifying this setting.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd November 2008, 14:29
skeldof skeldof is offline
Junior Member
 
Join Date: Oct 2008
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Sorry that's not really a solution. Something about the postfix settings is hardcoded, or not reading the database correctly when the mail folder is not in /home/vmail/...

I did the same change on the 3.0.0.7 vmware that's linked in downloads: Change /home/vmail/[domain]/[localpart]/ to /var/vmail/[domain]/[localpart]/. The folder structure is created correctly but all mails end up in a /var/vmail/Maildir file.
Reply With Quote
  #4  
Old 3rd November 2008, 14:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Changing the folder is not supporetd yet as it is hardcoded in some scripts, thats why I told you to not change it. I will remove it from the settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 4th November 2008, 13:57
skeldof skeldof is offline
Junior Member
 
Join Date: Oct 2008
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Lightbulb

I finally got the delivery working correctly. The key problem was .mailfilter file I hadn't spotted in /home/vmail/.

To anyone else (daft enough) wishing to move the Maildir folders:
If you haven't installed yet:
  • Edit $ISPCONFIG/install/dist/conf/$YOURDISTRO.conf.php. Change $conf['postfix']['vmail_mailbox_base'] = '/home/vmail'; to point to where your mail will go.
  • Install ISPConfig3.
  • Edit the server's config to use the new mail path: System -> Server config -> $SERVER -> Mail. Update "Maildir Path" and "Homedir Path". (if till hasn't removed the option yet )

If you have installed ISPConfig it's all a little messier:
  • I highly recommend not doing this if you have any mail users active in ISPConfig. Otherwise it'll involve lots of manual SQL updating in the mail_user table.
  • Move (or copy with "cp -a") /home/vmail to the new location.
  • Update /etc/passwd and change vmail's home to the new location.
  • Edit /etc/postfix/main.cf and change "virtual_mailbox_base" option to new location.
  • Edit newlocation/.mailfilter file. Change any reference of /home/vmail to the new location.
  • Edit the server's config to use the new mail path: System -> Server config -> $SERVER -> Mail. Update "Maildir Path" and "Homedir Path". (if till hasn't removed the option yet )
  • Update any current virtual mail users if you're crazy enough to ignore the warning
  • Restart postfix
Reply With Quote
The Following User Says Thank You to skeldof For This Useful Post:
quentusrex (4th November 2008)
  #6  
Old 4th November 2008, 15:05
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Is this ready to be installed as a question during the install? "Where do you want the vmail folder?" Because having it in the var folder would really help with hosting. This way only the /var/ folder could be mounted to a different drive and would make backing up the servers much easier.
Reply With Quote
  #7  
Old 4th November 2008, 16:39
skeldof skeldof is offline
Junior Member
 
Join Date: Oct 2008
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Almost. The problem is the static variable in the SQL. This is hard coded in install/tpl/server.ini.master which is simply inserted into the database (with safety quoting) during the install. This variable is what ISPConfig3 uses to generate the maildir location for a new mailbox.
Reply With Quote
  #8  
Old 4th November 2008, 16:48
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
 
Default

Then that isn't much of a problem. If we know where the static variable is, then it can be changed during install. It actually makes it easier if there is only one location with the variable. Because then it becomes a matter of setting that static variable during install.
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 04:18.


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