[imp] IMP-3.1RC1 BIG PROBLEM

Odhiambo Washington wash@wananchi.biz
Wed, 3 Apr 2002 08:58:46 +0300


* Joshua E Warchol <jwarchol@dsl.net> [20020402 23:06]: wrote:
> That is really messed up man! 

I did

tar -cZf horde.tgz horde/

then moved this to a machine next to me which is running as a webserver,
extracted it, configured a vhost and guess what?
http://mail.wananchi.com - use same login details as before.

I think maybe I have php screw up....

> 
> On Tue, Apr 02, 2002 at 01:30:07PM +0300, Odhiambo Washington wrote:
> > I have horde-2.1RC1, imp-3.1RC1 and a couple other applications, here..
> > 
> > I have configured IMP but what I am getting has totally left me dumbfounded.
> > 
> > If someone has just 5 minutes to spare, please test this site
> > 
> > https://alligator.wananchi.com
> > 
> > login as test/123test 
> > choose Wananchi POP3 Server
> > 
> > tell me what the problem could be here, that I get garbled data.
> > 
> > 
> > 
> > Thanking you in advance.
> > 
> > 
> > -Wash
> > 
> > -- 
> > Odhiambo Washington  <wash@wananchi.com>    "The box said 'Requires
> > Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
> > Tel: 254 2 313985-9   Fax: 254 2 313922     so I installed FreeBSD."   
> > GSM: 254 72 743 223   GSM: 254 733 744 121  This sig is McQ!  :-)
> > 
> > ++
> > The bureaucracy is expanding to meet the needs of an expanding
> > bureaucracy.
> > 
> > -- 
> > IMP mailing list: http://horde.org/imp/
> > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> -- 
> Joshua Warchol
> UNIX Systems Administrator
> DSL.net

-Wash

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Odhiambo Washington  <wash@wananchi.com>    "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: 254 2 313985-9   Fax: 254 2 313922     so I installed FreeBSD."   
GSM: 254 72 743 223   GSM: 254 733 744 121  This sig is McQ!  :-)
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\__\_\_\_\_\_\_
++
Bringing computers into the home won't change either one, but may
revitalize the corner saloon.


>From lkhanna@hughes Date: Wed,  3 Apr 2002 11:38:44 +051800
Return-Path: <lkhanna@hughes-ecomm.com>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 67958 invoked from network); 3 Apr 2002 06:04:53 -0000
Received: from unknown (HELO heclisg.com) (202.134.192.103)
  by clark.horde.org with SMTP; 3 Apr 2002 06:04:53 -0000
Received: (qmail 7768 invoked from network); 3 Apr 2002 06:07:11 -0000
Received: from unknown (HELO Spacewebmail.com) (221.171.85.8)
  by 221.171.85.81 with SMTP; 3 Apr 2002 06:07:11 -0000
Received: (qmail 2886 invoked by uid 99); 3 Apr 2002 06:08:44 -0000
Received: from 221.171.85.14 ( [221.171.85.14])
	as user hecl-lokesh@221.171.85.12 by 221.171.85.8 with HTTP;
	Wed,  3 Apr 2002 11:38:44 +051800
Message-ID: <1017814124.3caa9c6c26b94@221.171.85.8>
Date: Wed,  3 Apr 2002 11:38:44 +051800
From: Lokesh Khanna <lkhanna@hughes-ecomm.com>
To: imp <imp@lists.horde.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 3.0
X-Originating-IP: 221.171.85.14
X-AntiVirus: Scanned for viruses by SpaceWeb AntiVirus System
Subject: password change for multiple realms

Hi All


I am using imp 3.0 with horde 2.0 on redhat 7.2
I have got mutiple Mail server ( Qmail on redhat 6.2 ) and i am able to login 
into multiple server with the help of webmail
I have installed latest passwd.tgz file and compiled that , but still i am 
unable to change password on remote ( realm ) server, Poppaswd daemon is 
running on all the servers. but i am unable to modify passwd/config/conf.php 
file for multiple realms, can u pl help me in doing that.
Below is my servers.php file


$servers['IT'] = array(
    'name' => 'Hughes( Local )',
    'server' => '221.171.85.8',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => 'INBOX.',
    'namespace' => '',
    'maildomain' => 'hughes-escorts.com',
    'smtphost' => '221.171.85.12',
    'realm' => 'hughes-escorts.com',
    'preferred' => 'true'
);


$servers['Qmail'] = array(
    'name' => 'SpaceWeb',
    'server' => '221.171.85.12',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => 'INBOX.',
    'namespace' => '',
    'maildomain' => 'hughes-ecomm.com',
    'smtphost' => '221.171.85.12',
    'realm' => 'hughes-ecomm.com',
    'preferred' => 'false'
);

My horde/passwd/config/conf.php file is below


<?php
/*
 * passwd Configuration File
 *
 * This file contains global configuration settings for passwd. Values
 * may be safely edited by hand. Use conf.php.dist as a reference.
 *
 * Strings should be enclosed in 'quotes'.
 * Integers should be given literally (without quotes).
 * Boolean values may be 'true' or 'false'.
 *
 */

// If not using realms or virtual hosting, then there is only one possible
// poppassd server.  Even if you are using realms/hosting, you might want
// to set a default poppassd server.  The next two settings define the
// default hostname where the poppassd server is running, and the default port
// that it is running one.  These may be overriden by realm specific values
// if any exist below.

$conf['server']['default'] = array(host => 'localhost', port => 106);

// If you are using realms or virtual hosting where you authenticate to
// Horde with 'user@realm' rather than just 'user', then you can have
// a seperate poppassd server for each realm or domain.   The following
// examples are for two realms (physics.utexas.edu and astro.utexas.edu)
//

//$conf['server']['astro.utexas.edu'] =
//      array(host => 'mail.as.utexas.edu', port => 106);

// Define apps to put in the menu bar.  To include IMP in the menu bar, you
// would add: $conf['menu']['apps'] = array('imp');

$conf['menu']['apps'] = array('imp');

// Define usernames for which we will refuse to change passwords.
// This may or may not work with realms or virtual hosting, depending on setup

$conf['user']['refused'] = array('root','bin','daemon','adm','lp','shutdown','ha
lt','uucp','ftp','anonymous','nobody','httpd','operator','guest','diginext');

?>


I think due to below line its always trying on localhost

$conf['server']['default'] = array(host => 'localhost', port => 106);

Can u pl tell me , how can i modify this , so that it should automatically pick 
poppaswd server same , in which i am login in.

Regards

Lokesh



-------------------------------------------------
This mail sent through Hughes-Webmail: http://hughesindia.com



>From alex@thbuo.gov.tw Date: Wed,  3 Apr 2002 14:24:38 +0800
Return-Path: <alex@thbuo.gov.tw>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 69260 invoked from network); 3 Apr 2002 06:29:37 -0000
Received: from unknown (HELO localhost.localdomain) (210.241.49.68)
  by clark.horde.org with SMTP; 3 Apr 2002 06:29:37 -0000
Received: (from nobody@localhost)
	by localhost.localdomain (8.11.6/8.11.6) id g336OcG08764
	for imp@lists.horde.org; Wed, 3 Apr 2002 14:24:38 +0800
From: alex <alex@thbuo.gov.tw>
X-Authentication-Warning: localhost.localdomain: nobody set sender to alex@thbuo.gov.tw using -f
Received: from 17.192.244.2 ( [17.192.244.2])
	as user alex@thbuo.gov.tw by webmail.thbuo.gov.tw with HTTP;
	Wed,  3 Apr 2002 14:24:38 +0800
Message-ID: <1017815078.3caaa026791dd@webmail.thbuo.gov.tw>
Date: Wed,  3 Apr 2002 14:24:38 +0800
To: imp@lists.horde.org
References: <1017787808.3caa35a0d4684@mail.ph.utexas.edu>
In-Reply-To: <1017787808.3caa35a0d4684@mail.ph.utexas.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=BIG5
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: Re: [imp] quota for wu-imapd ?

Hi Eric,
As you suggestion,recompile quota tools,set uid to root...and probaly we have a 
lot of secure insure to face.

Here is my way for UW-imap quota checking:
    Becaue quota for user is not so critical,so i add a cron job(batch file 
called /root/bin/quota_report.sh) to report every user's quota information and 
output to /tmp/quota/$USER.
    
    /root/root/bin/quota_report.sh
    ==============================
    #!/bin/bash
    for $s in `cat /etc/passwd`
    do
       $user=`echo $scut -d ':' -f1`
       $home=`echo $scut -d ':' -f6`
       /usr/bin/quota -u $user|grep $home >/tmp/quota/$user
    done

    imp/config/conf.php
    ===================
    if (!function_exists('imp_show_quota')) {
   function imp_show_quota ($imp) {
        $imap_admin = $imp['user'];
        $passwd_array = posix_getpwnam($imap_admin);
        $homedir = split("/", $passwd_array['dir']);
        $realname = split(",", $passwd_array['gecos']);
        $quota_html = '<table width="100%" border="0" cellpadding="0" cellspacin
g="0"><tr><td class="item"><table border="0" cellspacing="0" cellpadding="0" wid
th="100%"><tr>';
        $quota_html .= '<td align="left" class="header">Login: ' . $realname[0]
. " (" . $imap_admin . ")" . '</td>';

        $junk = exec("/bin/cat /tmp/quota/$imap_admin ",
                     $quota_data,$return_code);
        if ($return_code == 0 && count($quota_data) == 1) {
           $splitted = split("[[:blank:]]+", trim($quota_data[0]));
           $taken = $splitted[1] / 1000 ; $total = $splitted[2] / 1000 ;
           $percent = $taken * 100 / $total ;
           if ($percent >= 90) {
               $class = 'quotaalert';
           } elseif ($percent >= 80) {
               $class = 'quotawarn';
} else {
               $class = 'header';
           }
           $quota_html .= '<td align="right" class="' . $class . '">';
           $quota_html .= sprintf("Quota on /%s: %.1fMB/%.1fMB (%.1f%%)", $hom
edir[1], $taken, $total, $percent);
        } else {
            $quota_html .= '<td align="right" class="header">';
            $quota_html .= "Quota not available";
        }
        $quota_html .= '</td></tr></table></td></tr></table>';
        return $quota_html;
    }
}

David Chang

       
¤Þ¥Î Eric Rostetter <eric.rostetter@physics.utexas.edu>:

> ----- Forwarded message from Stephane Morand
> <Stephane.Morand@polytechnique.fr>
> -----
> 
> Hi Eric,
> 
> I saw your message about setting quota for imap (University of Washington)
> on the list. I think it would be a god idea to send details to the list. I
> am interested in it anyway, can you send me more details about this ? If I
> understand you have some tip to set the quota module under imap uw ?
> 
> Thanks for your help,
> 
> -Stephane
> 
> ----- End forwarded message -----
> 
> For anyone interested, please see the README file at
> https://mail.ph.utexas.edu/patches/wu-imap-quotas/README
> which explains how to do this and gives the php code needed.
> 
> This is definately not supported, but it does work and I know of
> at least 3 sites using this in production now.  Not for the faint
> of heart or sysadmin/programming skill, but definately doable.
> 
> -- 
> Eric Rostetter
> eric.rostetter@physics.utexas.edu
> 
> Hey Rocky!  Watch me pull a rabbit from my hat!
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>