Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th January 2006, 17:49
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default Uebimiau and courier-imap: cannot create folders

Hi,
I have posted the followint message on the Uebimiau forum, maybe someone can help me here....
BTW, the package for ISPConfig contains uebi 2.7.2, 2.7.9 was released on 2005-10-12 with several bug fixes and security updates, how to upgrade package?

-------------------
Hi,
Uebimiau is simply great! I knew it by ISPconfig.org.

But I want to setup an imap server with Maildir support, I'm trying actually courier.imap.
All seems to work fine but I can't create folders!

I found some known issue related to courier's namespaces, it uses "INBOX." but I didn't find options to set this in uebimiau.

Can someone help me?

Thank you!
-------------------
Reply With Quote
Sponsored Links
  #2  
Old 8th January 2006, 17:54
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok, I'm replyng myself... am I mad?

2005-08-01 V2.7.8
........
- Added support for folder prefix (eg. Courier folder style: INBOX.folder_name)
........

Problem (partially) solved!

But the question is, again: how to upgrade? Maybe I can replace file by hand but... I prefer a cleaner work...
Maybe I can try to build a new package for ISPConfig, is it difficoult... good question, isn't it? ;-)

Sorry for my english, I'm italian!
Reply With Quote
  #3  
Old 8th January 2006, 19:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Basically, you can upgrade Uebimiau yourself. After the upgrade, edit /home/admispconfig/ispconfig/web/webmail/msglist.php and put the ISPConfig login code into it, as described here: http://www.howtoforge.com/forums/showthread.php?t=1761
__________________
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
  #4  
Old 9th January 2006, 10:59
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok!

Code:
cd /home/admispconfig/ispconfig/web
mv webmail webmail.backup
wget http://www.uebimiau.org/downloads/uebimiau-2.7.9-any.zip
unzip uebimiau-2.7.9-any.zip
rm uebimiau-2.7.9-any.zip
cd webmail
vi process.php
Then added, after comments and before:
require("./inc/inc.php");
the following code:

Code:
//////////////////////// Map Alias to User Name (ISPConfig) ////////////////
include("/home/admispconfig/ispconfig/lib/config.inc.php");
$dbclass = $go_info["server"]["classes_root"] . $go_info["server"]["dir_trenner"] ."ispconfig_db_".$go_info["server"]["db_type"].".lib.php";
include_once($dbclass);
$dbname = 'db_'.$go_info["server"]["db_type"];
$db = new $dbname;
if($f_email){
  list($alias,$domain) = explode("@", $f_email);
  $webs = $db->queryAllRecords("SELECT * from isp_isp_web, isp_nodes where isp_isp_web.doc_id = isp_nodes.doc_id and isp_nodes.doctype_id = '1013' and isp_isp_web.server_id = '1' and isp_nodes.status = '1'");
  if(!empty($webs)){
    foreach($webs as $web){
      if($web["web_host"] != ""){
        $domain_hosts[] = $web["web_host"].".".$web["web_domain"];
      } else {
        $domain_hosts[] = $web["web_domain"];
      }
      $codomains = $db->queryAllRecords("SELECT isp_isp_domain.domain_domain, isp_isp_domain.domain_host from isp_dep,isp_isp_domain where isp_dep.child_doc_id = isp_isp_domain.doc_id and isp_dep.child_doctype_id ='1015' and isp_dep.parent_doctype_id = '1013' and isp_dep.parent_doc_id = '".$web["doc_id"]."' and isp_isp_domain.status != 'd'");
      if(!empty($codomains)){
        foreach($codomains as $codomain){
          if($codomain["domain_host"] != ""){
            $domain_hosts[] = $codomain["domain_host"].".".$codomain["domain_domain"];
          } else {
            $domain_hosts[] = $codomain["domain_domain"];
          }
        }
      }
      if(in_array($domain, $domain_hosts)){
        $users = $db->queryAllRecords("SELECT * FROM isp_nodes, isp_dep, isp_isp_user WHERE isp_dep.parent_doc_id = '".$web["doc_id"]."' AND isp_dep.parent_doctype_id = '1013' AND isp_dep.child_doc_id = isp_isp_user.doc_id AND isp_dep.child_doctype_id = '1014' AND isp_nodes.doc_id = isp_isp_user.doc_id AND isp_nodes.doctype_id = '1014' AND isp_nodes.status = '1'");
        if(!empty($users)){
          foreach($users as $user){
            $aliasse = explode("\n", str_replace("\r\n", "\n", trim($user["user_emailalias"])));
            if(trim($user["user_email"]) != "") $aliasse[] = trim($user["user_email"]);
            $aliasse[] = trim($user["user_username"]);
            if(in_array($alias, $aliasse)) $f_email = $user["user_username"]."@".$domain;
            unset($aliasse);
          }
        }
      }
      unset($domain_hosts);
    }
  }
}
//////////////////////// Map Alias to User Name (ISPConfig) ENDE ////////////////
All seems to work fine :-)
Reply With Quote
  #5  
Old 4th April 2006, 12:15
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

This changes doesn't work anymore with ISPConfig 2.2.0... any help?
Reply With Quote
  #6  
Old 4th April 2006, 15:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

The login code hasn't changed.
Do you get any errors?
__________________
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
  #7  
Old 5th April 2006, 10:37
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

It's very strange... I get this error:

ERROR (2): Header may not contain more than a single header, new line detected. (/webmail/inc/inc.php:156)

in inc.php, line 156 there is:

Code:
/*
Don't remove the fallowing lines, or you will be problems with browser's cache
*/

Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n".
"Cache-Control: no-cache\r\n".
"Cache-Control: must-revalidate");
I've replaced with;

Code:
Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT");
And now it works...
Reply With Quote
  #8  
Old 5th April 2006, 23:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Please install the latest Uebimiau package from ispconfig.org: http://www.howtoforge.com/forums/showthread.php?t=2842
__________________
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


All times are GMT +2. The time now is 20:16.


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