• Bug#266099: squirrelmail: no login to imap server possible

    From Martin Hans@1:229/2 to All on Mon Aug 16 20:10:12 2004
    From: [email protected]

    Package: squirrelmail
    Version: 2:1.4.3a-0.1
    Severity: important

    Hi,

    since the last update I can no longer login to my Imap server.
    I'm using uw-imap as Imap server:

    uw-imapd >> 7:2002edebian1-3
    uw-mailutils >> 7:2002edebian1-3
    libc-client2002edebian >> 7:2002edebian1-3

    The apache log contains nothing suspicious, but the syslog contains
    the following line:

    Aug 16 19:47:11 balu imapd[4331]: Command stream end of file, while
    reading line user=hans host=balu.mh01.de [127.0.0.1]

    when I try to connect.
    Other clients like KMail and Mozilla work without any problem.
    The Imap server supports only "clear text" login, but this was no problem before.

    Cheers

    Martin

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.8.1
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages squirrelmail depends on:
    ii apache2-mpm-prefork [httpd] 2.0.50-8 Traditional model for Apache2
    ii libapache2-mod-php4 4:4.3.8-5 A server-side, HTML-embedded scrip ii perl 5.8.4-2 Larry Wall's Practical Extraction ii php4-cgi 4:4.3.8-5 A server-side, HTML-embedded scrip

    -- no debconf information


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Jeroen van Wolffelaar@1:229/2 to Martin Hans on Mon Aug 16 23:30:12 2004
    From: [email protected]

    On Mon, Aug 16, 2004 at 07:51:38PM +0200, Martin Hans wrote:
    uw-imapd >> 7:2002edebian1-3
    uw-mailutils >> 7:2002edebian1-3
    libc-client2002edebian >> 7:2002edebian1-3

    The apache log contains nothing suspicious, but the syslog contains
    the following line:

    Aug 16 19:47:11 balu imapd[4331]: Command stream end of file, while
    reading line user=hans host=balu.mh01.de [127.0.0.1]

    What is your /etc/squirrelmail/config.php? Especially $imap_server_type?

    Thijs, any idea?

    FWIW, I use exactly the same versions of uw-imapd and libc-client...
    with 'uw' as $imap_server_port, and no problem at all.

    I don't have uw-mailutils installed though.

    --Jeroen

    --
    Jeroen van Wolffelaar
    [email protected] (also for Jabber & MSN; ICQ: 33944357) http://Jeroen.A-Eskwadraat.nl


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Martin Hans@1:229/2 to Jeroen van Wolffelaar on Tue Aug 17 07:30:08 2004
    From: [email protected]

    Hi,

    the main parts of my SquirrelMail config containing Imap stuff:

    $domain = implode('', file('/etc/hostname')); $imapServerAddress = 'localhost';
    $imapPort = 143;
    $useSendmail = false;
    $smtpServerAddress = 'localhost';
    $smtpPort = 25;
    $sendmail_path = '/usr/sbin/sendmail';
    $pop_before_smtp = false;
    $imap_server_type = 'uw';
    $invert_time = false;
    $optional_delimiter = 'detect';
    ...
    $prefs_dsn = '';
    $prefs_table = 'userprefs';
    $prefs_user_field = 'user';
    $prefs_key_field = 'prefkey';
    $prefs_val_field = 'prefval';
    $no_list_for_subscribe = false;
    $smtp_auth_mech = 'none';
    $imap_auth_mech = 'login';
    $use_imap_tls = false;
    $use_smtp_tls = false;
    $session_name = 'SQMSESSID';

    I tried it also without 'uw' as $imap_server_type.
    I now have uninstalled uw-mailutils and the behaviour is still
    the same.

    Can I provide you anything else to find the problem?

    Cheers

    Martin

    On Monday 16 August 2004 23:14, Jeroen van Wolffelaar wrote:
    On Mon, Aug 16, 2004 at 07:51:38PM +0200, Martin Hans wrote:
    uw-imapd >> 7:2002edebian1-3
    uw-mailutils >> 7:2002edebian1-3
    libc-client2002edebian >> 7:2002edebian1-3

    The apache log contains nothing suspicious, but the syslog contains
    the following line:

    Aug 16 19:47:11 balu imapd[4331]: Command stream end of file, while
    reading line user=hans host=balu.mh01.de [127.0.0.1]

    What is your /etc/squirrelmail/config.php? Especially $imap_server_type?

    Thijs, any idea?

    FWIW, I use exactly the same versions of uw-imapd and libc-client...
    with 'uw' as $imap_server_port, and no problem at all.

    I don't have uw-mailutils installed though.

    --Jeroen


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Jeroen van Wolffelaar@1:229/2 to Martin Hans on Wed Aug 18 20:30:12 2004
    From: [email protected]

    retitle 266099 UW-IMAPD doesn't work, probably since libc-client2002edebian thanks

    On Tue, Aug 17, 2004 at 07:04:25AM +0200, Martin Hans wrote:
    Hi,

    the main parts of my SquirrelMail config containing Imap stuff:

    $domain = implode('', file('/etc/hostname'));

    Hm, not relevant for this bug AFAIK, but you want a trim() around this
    if you don't want a newline in your $domain variable.

    (...)

    I tried it also without 'uw' as $imap_server_type.
    I now have uninstalled uw-mailutils and the behaviour is still
    the same.

    Can I provide you anything else to find the problem?

    Your configuration is for the relevant parts identical to mine... And if works-for-me(tm). Something somewhere must be different... The next
    logical spot to look is your UW configuration and mail setup.

    Squirrelmail uses plaintext authentication, and that was
    disabled in UW at a certain point in history.

    It can be re-enabled by this:

    [jeroen@mordor]/etc$ cat c-client.cf
    I accept the risk
    set disable-plaintext nil
    [jeroen@mordor]/etc$

    See /usr/share/doc/libc-client2002edebian/README.Debian.gz

    Is this your problem? See #248293 too.

    Thijs, is it possible that the 1.5.x development series can do CRAM-MD5
    or other non-plaintext authentication methods?

    --Jeroen

    --
    Jeroen van Wolffelaar
    [email protected] (also for Jabber & MSN; ICQ: 33944357) http://Jeroen.A-Eskwadraat.nl


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)