Inbox Settings

Submitted by cyberfarer on 2013-11-13

Hello

When I click on Inbox Settings I get the following error:

Inbox Settings

Inbox settings are not avaiable because the 'IMAP' extension is missing or disabled.

I have installed php5-imap and I am not aware of how else to enable IMAP.

Could you explain what I'm missing?

Thank you very much.

Is the imap extension enabled in php.ini?

Regards,
Michał

I had the same problem.

Changing my ini to:
extension=php_imap.dll

worked.

Yes, php5-imap was installed. Oddly, it is now working and the only thing I did was access from a different computer. Go figure.

Thank you for your replies.

I've cannot get the inbox configured properly with Microsoft Exchange.
It will timeout or the connection will be refused. Does anyone have advice?

Php-imap was installed.

Thanks

Try this fix that worked fine with me

Edit file
server\system\mail\inboxengine.php.inc

Changing line 68 from

$this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1);

to:

$this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1,  array('DISABLE_AUTHENTICATOR' => 'GSSAPI') );

It's caused by a custom behavior of imap implementation on Exchange Servers.

Thanks. I still cannot get it to work with MS Exchange. I was able to configure it with a non-exchange account for a test but was not able to get emails to arrive in WebIssues.

Thanks helping.

No luck yet.

I also recompiled PHP 5.5.13 without kerberos at mentioned at this link.
http://www.php.net//manual/en/ref.imap.php

Then I edited server/system/mail/inboxengine.inc.php with code similar to an example at this link.
http://stackoverflow.com/questions/5815183/php-imap-exchange-issue

if ( !empty( $settings[ 'inbox_user' ] ) ){
#$this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1 );
$tryCnt = 0;

while(!empty( $settings[ 'inbox_user' ] )){
$this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1,
array('DISABLE_AUTHENTICATOR' => 'GSSAPI') );

$tryCnt ++;

if(!empty( $settings[ 'inbox_user' ] )){
$this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1,
array('DISABLE_AUTHENTICATOR' => 'PLAIN'));
$tryCnt ++;
}
if($tryCnt > 20){
$this->handleError();
#echo "Cannot Connect To Exchange Server:";
#die(var_dump(imap_errors()));
}
}
}
else
$this->mailbox = @imap_open( $address, '', '', 0, 1 );

if ( $this->mailbox === false )
$this->handleError();

I'd like to format the previous posting but the website thinks it's spam and won't allow an edit.

if ( !empty( $setings[ 'inbox_mailbox' ] ) )
            $address .= imap_utf7_encode( $settings[ 'inbox_mailbox' ] );

        if ( !empty( $settings[ 'inbox_user' ] ) ){
            #$this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1 );
            $tryCnt = 0;

            while(!empty( $settings[ 'inbox_user' ] )){
                $this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1,
                array('DISABLE_AUTHENTICATOR' => 'GSSAPI') );

                $tryCnt ++;

                if(!empty( $settings[ 'inbox_user' ] )){
                        $this->mailbox = @imap_open( $address, $settings[ 'inbox_user' ], $settings[ 'inbox_password' ], 0, 1,
                        array('DISABLE_AUTHENTICATOR' => 'PLAIN'));
                        $tryCnt ++;
                }
                if($tryCnt > 20){
                        $this->handleError();
                        #echo "Cannot Connect To Exchange Server:<BR>";
                        #die(var_dump(imap_errors()));
                }
            }
        }
        else
            $this->mailbox = @imap_open( $address, '', '', 0, 1 );

        if ( $this->mailbox === false )
            $this->handleError();