Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd October 2005, 01:19
jsb jsb is offline
Junior Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up PostFix and or Courier IMAP question

First off: Nice work guys. Great product!

The ubuntu how-to was very straight forward. Up and running in short order.

I would like to set up default Outbox, Sent Items and Draft directories. We will be using either Thunderbird or Evolution and maybe down the road a web interface such as squirrel mail. We will only be using IMAP.

Thanks

John
Reply With Quote
Sponsored Links
  #2  
Old 3rd October 2005, 13:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You can either have your users create those folders with their email client, or you create those folders with ISPConfig when you create a new user.
For the latter, you'd have to modify the function user_insert() in /root/ispconfig/scripts/lib/config.lib.php.

In line 654 you could insert something like this:
PHP Code:
exec("maildirmake ".$web_path."/user/".$user_username."/Maildir &> /dev/null");
exec("maildirmake -f Drafts ".$web_path."/user/".$user_username."/Maildir &> /dev/null"); 
That would for example create a Drafts directory within Maildir.
__________________
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
  #3  
Old 4th October 2005, 01:32
jsb jsb is offline
Junior Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great, then repeat the second command for each additional directory.
Sure glad I asked. I didn't think this would have been handled through ispconfig.


Thanks,

John
Reply With Quote
  #4  
Old 10th January 2006, 01:19
timehost timehost is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default maildirmake not working

Hello,
I changed the file as follows but it still doesnt create /cur /tmp and /new, thus the customers get an error when they create a user and try to check the account working.

exec("chown -R ".$user_username.":web".$web_doc_id." ".$web_path."/user/".$user_username." &> /dev/null");
exec("chmod -R 775 $web_path/user/$user_username");
exec("chmod 755 $web_path/user/$user_username");
exec("maildirmake ".$web_path."/user/".$user_username."/Maildir &> /dev/null");
exec("maildirmake -f cur ".$web_path."/user/".$user_username."/Maildir &> /dev/null");
exec("maildirmake -f new ".$web_path."/user/".$user_username."/Maildir &> /dev/null");
exec("maildirmake -f tmp ".$web_path."/user/".$user_username."/Maildir &> /dev/null");
Reply With Quote
  #5  
Old 10th January 2006, 01:46
timehost timehost is offline
Junior Member
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

OK, i had to provide full path to the maildirmake command. Thanks.
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


All times are GMT +2. The time now is 09:12.


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