Results 1 to 8 of 8

Thread: IMAP Exchange Problem

  1. #1
    KaimenAssoc is offline Junior Member
    Join Date
    Aug 2007
    Posts
    2

    Default IMAP Exchange Problem

    I cannot get SugarCRM inbound email settings to work. I am trying to connect to an in-house Exchange 2003 server using SSL IMAP. Every time I test the settings I get "Login or Password Incorrect". I have tried multiple accounts with passwords without non-standard characters. I can connect without problems using Outlook Express.

    Basic Information:

    SugarCRM 4.5.1e
    CentOS 4.5
    Apache 2.0.52
    MySQL 4.1.20

    Any suggestions?

  2. #2
    marcuscherry is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    44

    Post Re: IMAP Exchange Problem

    I have a related but different problem.

    I am using an exchange mailbox and can send emails without any problems but cannot receive anything.

    If anyone can help with this I'd be very grateful.

    Thanks

  3. #3
    KaimenAssoc is offline Junior Member
    Join Date
    Aug 2007
    Posts
    2

    Default Re: IMAP Exchange Problem

    Anyone? This is driving me crazy!

  4. #4
    jskurray is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Re: IMAP Exchange Problem

    I also have the same issue with Exchange 2003 and IMAP. I have tested against a Linux server and it works so maybe a Microsoft incompatibility thing?

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: IMAP Exchange Problem

    switch logging to debug level, then you'll get a lot of information in the logfile.

    hk

  6. #6
    jskurray is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default Re: IMAP Exchange Problem

    I apologies, my issue is IMAP to Exchange on SugarCRM 5 Beta 2. I will create a separate thread after some further testing with debug on.

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: IMAP Exchange Problem

    I had some problems to connect to Exchange 2003 IMAP server too.
    So I looked to the code of modules/InboundEmail/InboundEmail.php.

    In function connectMailserver there is a section starting after
    $list = imap_getmailboxes($this->conn, $testConnectString, "*");

    This call retrieves all - really ALL - accessable Echange folders - even the public folders.

    Then the call
    $mb = imap_utf7_decode(str_replace($testConnectString,'' ,$val->name));
    tries to decode the folder names. In some cases (e.g. german characters äöü...) this decoding is incorrect.

    As I was only interested in root-mailboxes ( I think normally you only want so receive from INBOX), I put a filter in the foreach loop as follows.

    PHP Code:
       $list imap_getmailboxes($this->conn$testConnectString"*");
       if (
    is_array($list)) {
           
    sort($list);
           
    $msg .= '<b>'.$mod_strings['LBL_FOUND_MAILBOXES'].'</b><p>';
           foreach (
    $list as $key => $val) {
              
    $mb imap_utf7_decode(str_replace($testConnectString,'',$val->name));
    //kuske                     
              
    if (!strpos($mb,"/") ){
    //kuske                     
                 
    $msg .= '<a onClick=\'setMailbox(\"'.$mb.'\"); window.close();\'>';
                 
    $msg .= $mb;
                 
    $msg .= '</a><br>';
    //kuske
              
    }
    //kuske
           
    }
       } else {
          
    $msg .= $errors;
          
    $msg .= '<p>'.$mod_strings['ERR_MAILBOX_FAIL'].imap_last_error().'</p>';
          
    $msg .= '<p>'.$mod_strings['ERR_TEST_MAILBOX'].'</p>';
                        }
       } else {
          
    $msg .= $mod_strings['LBL_POP3_SUCCESS'];
       } 
    Now it works

    Good luck
    hk

  8. #8
    dnk.nitro is offline Member
    Join Date
    Nov 2007
    Posts
    6

    Default Re: IMAP Exchange Problem

    I have just discovered that in case a password contains " character then Inbound email won't work - login or password incorrect.
    Hope this helps.

    Please consider removing other characters from an email password which are being encoded.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2007-08-17, 09:45 PM
  2. InboundEmail group IMAP SSL Problem
    By samsonasu in forum Help
    Replies: 12
    Last Post: 2007-02-08, 01:47 PM
  3. Replies: 3
    Last Post: 2006-08-13, 12:25 AM
  4. Inbound Email Attachment problem (IMAP)
    By jeg1972 in forum Help
    Replies: 2
    Last Post: 2006-06-29, 03:56 PM
  5. Replies: 0
    Last Post: 2006-03-02, 10:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •