maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Mail for Exchange (MfE). Blame me here, pls (https://talk.maemo.org/showthread.php?t=35136)

Rob1n 2010-04-16 17:33

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by luh3418 (Post 613715)
I checked my folders and there was no directory /home/user/.activesync/certs so I created one. I looked in /home/user/.maemosec-certs/ssl-ca/ and there were no certs. Could only find certs in /etc/certs/common-ca as .pem files

I tried smlink from /etc/certs/common-ca to /home/user/.activesync/certs but this did not work.

That's because the underlying issue for this was fixed in PR1.1, so does absolutely nothing now.

Quote:

Originally Posted by luh3418 (Post 613715)
I have tried importing the cert as a .p7b file and saving it in /home/user/.activesync/certs and this did not work.

That's presumably because the certificate is not a CA certificate. See http://wiki.maemo.org/Mail_For_Excha...rtbeat_and_FAQ for suggestions & debugging details.

RoRoD 2010-04-17 08:39

Re: Mail for Exchange (MfE). Blame me here, pls
 
Hi I'm currently facing another strange Issue with Exchange 2007 and N900 :

I'm using a certificate authority im my domain to generate a self signed CA certificate.

then i generate a new certificate for my exchange 2007 server.
It's installed Ok.
then i export it from IIS 6 server in PFX format, i ca import it on my N900 device (i show 2 certificates chained, the CA one and the WebServer (exchange2007/IIS) One.
I installed both selecting E-Mail and Server, they are visible in the certificate Manager.

i tested them folowing step here :http://wiki.maemo.org/Mail_For_Excha..._certificates:

cmcli -T common-ca -v <your-server-dns-name-or-ip-address>:<port-number>
issues with an error "Verification failed : unable to get local issuer certificate

witch is logical, as this is a self signed one.

then
cmcli -t ssl-ca -v <your-server-dns-name-or-ip-address>:<port-number>

replies something like this :

0115e5345e4dd64855ed1e3d44060be25f26c2e6 MYDOMAIN
trust chain(2):
b5567d6c9eef05f07966d98eb2a85716bff4e80d MYDOMAIN
Verified OK


and cmcli -T common-ca -t ssl-ca -v <your-server-dns-name-or-ip-address>:<port-number>

replies something like this :
0115e5345e4dd64855ed1e3d44060be25f26c2e6 MYDOMAIN
trust chain(2):
b5567d6c9eef05f07966d98eb2a85716bff4e80d MYDOMAIN
+-> 0115e5345e4dd64855ed1e3d44060be25f26c2e6 MYDOMAIN
Verified OK


but i'm currently unable to sync my exchange 2007 account, i've got the same error from my device "Either exchange server requires a secure connection or your account is disabled". "


Am I doing something wrong ?

luh3418 2010-04-18 08:44

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 613798)
That's because the underlying issue for this was fixed in PR1.1, so does absolutely nothing now.



That's presumably because the certificate is not a CA certificate. See http://wiki.maemo.org/Mail_For_Excha...rtbeat_and_FAQ for suggestions & debugging details.

Thanks. Yes you are quite right it is not a CA cert :-(

I tried debugging but could not work out:
a- how to find which .pem file I was looking for. Looked at the SHA numbers etc and could not see a match
b- even if 'a' no idea what to edit the file to say.

Will this all be a non issue with pr.1.2?

Again thanks for your advice here, much appreciated.

Rob1n 2010-04-18 09:21

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by luh3418 (Post 615730)
Thanks. Yes you are quite right it is not a CA cert :-(

I tried debugging but could not work out:
a- how to find which .pem file I was looking for. Looked at the SHA numbers etc and could not see a match
b- even if 'a' no idea what to edit the file to say.

You can't edit the files - they're encrypted & signed to prevent that. If it's a self-signed certificate then you'll need to get a new one made with the CA flag set. If it's not a self-signed certificate then you'll need to load the certificate for the issuing CA instead.

Quote:

Originally Posted by luh3418 (Post 615730)
Will this all be a non issue with pr.1.2?

I've not heard of any changes to this in PR1.2.

luh3418 2010-04-19 04:19

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 615757)
You can't edit the files - they're encrypted & signed to prevent that. If it's a self-signed certificate then you'll need to get a new one made with the CA flag set. If it's not a self-signed certificate then you'll need to load the certificate for the issuing CA instead.


I've not heard of any changes to this in PR1.2.

Re PR1.2 see "6582 exchange sync cant handle certificate exceptions" http://dailymobile.se/2010/03/28/nok...e-coming-soon/

Re my certificate problem: I saved the certificate as a p7b then email it to my N900 and open it in certificate manager. All good. It is not self signed. The issuing CA is Equifax and it is issued to "*sol.net.au"

How then do I "load the certificate for the issuing CA instead."

After opening it in certificate manager when I look at all my certificates in Settings > Certificate Manager it is not there.


Sorry for dullardedness but SSL is not my forte.

Rob1n 2010-04-19 08:24

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by luh3418 (Post 617058)
Re my certificate problem: I saved the certificate as a p7b then email it to my N900 and open it in certificate manager. All good. It is not self signed. The issuing CA is Equifax and it is issued to "*sol.net.au"

How then do I "load the certificate for the issuing CA instead."

After opening it in certificate manager when I look at all my certificates in Settings > Certificate Manager it is not there.

Sorry for dullardedness but SSL is not my forte.

There's several ways to do this. The easiest is probably to use Firefox on your desktop - open the URL you use for MfE. Click in the URL bar (on the left hand side, where it gives the domain for the SSL certificate). It should pop up a window detailing the security status - click on the "More Information" button, the click on the "View Certificate" button. Go to the details tab - it should show the certificate hierarchy. You can then select any of the certificates in the hierarchy and export them to PEM files (which can then be loaded on the N900).

You can do the same thing with IE if you prefer that (in IE7, you click on the padlock to the right of the URL bar to get to the certificates, not sure about IE8 though).

luh3418 2010-04-19 14:38

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 617291)
There's several ways to do this. The easiest is probably to use Firefox on your desktop - open the URL you use for MfE. Click in the URL bar (on the left hand side, where it gives the domain for the SSL certificate). It should pop up a window detailing the security status - click on the "More Information" button, the click on the "View Certificate" button. Go to the details tab - it should show the certificate hierarchy. You can then select any of the certificates in the hierarchy and export them to PEM files (which can then be loaded on the N900).

You can do the same thing with IE if you prefer that (in IE7, you click on the padlock to the right of the URL bar to get to the certificates, not sure about IE8 though).

Thanks again your patience is appreciated. I found the cert hierarchy as you explained and actually imported and converted all 2 certificates. One was the same as before and did not load in the certificate manager but was read. The other one loaded and I saved it for server email etc but when I tried to install credentials for Mfe I still get the invalid server message :-(

I had a look in firefox certificate manager and in "other" tab I found a certificate that was from Equifax to the exchange/zimbra server. I imported it converted to p7b and then when I tried to load it in n900 cert manager it said the certificate date was invalid/ expired which indeed it was.

Could that be the right certificate and the problem? I recall in firefox the first time I had to validate that cert it asked me if I would ignore the expiry date. Could n900 manager not be able to do this perhaps? I have asked our IT people to issue a new unexpired certificate.

Roeland 2010-04-19 18:20

Re: Mail for Exchange (MfE). Blame me here, pls
 
Hi,

Got my n900 since a couple of days, and activated exchange 'successfully' for google mail, calendar and contacts. Until, the Inbox couldn't be fetched.

So I removed the account, in order to recreate it. But when trying to reach the the Mail for Exchange wizard, through the settings menu, the menu entry is displayed for 2 seconds, and then disappears.......

Enabled logging with instructions found on http://wiki.maemo.org/Mail_For_Excha...the_logging_ON, but no succes.

Also found out that real sync with google calendar and contacts isnt possible yet, so I want to use the NueavaSync service. But for this service I also need to reach the menu entry.

Hope someone can help me with this?

thanks

luh3418 2010-04-20 02:38

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by luh3418 (Post 617754)
Thanks again your patience is appreciated. I found the cert hierarchy as you explained and actually imported and converted all 2 certificates. One was the same as before and did not load in the certificate manager but was read. The other one loaded and I saved it for server email etc but when I tried to install credentials for Mfe I still get the invalid server message :-(

I had a look in firefox certificate manager and in "other" tab I found a certificate that was from Equifax to the exchange/zimbra server. I imported it converted to p7b and then when I tried to load it in n900 cert manager it said the certificate date was invalid/ expired which indeed it was.

Could that be the right certificate and the problem? I recall in firefox the first time I had to validate that cert it asked me if I would ignore the expiry date. Could n900 manager not be able to do this perhaps? I have asked our IT people to issue a new unexpired certificate.

It was the "other" server. Have it working now. Thanks for your help.

RoRoD 2010-04-20 15:13

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by RoRoD (Post 614492)
Hi I'm currently facing another strange Issue with Exchange 2007 and N900 :

I'm using a certificate authority im my domain to generate a self signed CA certificate.

then i generate a new certificate for my exchange 2007 server.
It's installed Ok.
then i export it from IIS 6 server in PFX format, i ca import it on my N900 device (i show 2 certificates chained, the CA one and the WebServer (exchange2007/IIS) One.
I installed both selecting E-Mail and Server, they are visible in the certificate Manager.

i tested them folowing step here :http://wiki.maemo.org/Mail_For_Excha..._certificates:

cmcli -T common-ca -v <your-server-dns-name-or-ip-address>:<port-number>
issues with an error "Verification failed : unable to get local issuer certificate

witch is logical, as this is a self signed one.

then
cmcli -t ssl-ca -v <your-server-dns-name-or-ip-address>:<port-number>

replies something like this :

0115e5345e4dd64855ed1e3d44060be25f26c2e6 MYDOMAIN
trust chain(2):
b5567d6c9eef05f07966d98eb2a85716bff4e80d MYDOMAIN
Verified OK


and cmcli -T common-ca -t ssl-ca -v <your-server-dns-name-or-ip-address>:<port-number>

replies something like this :
0115e5345e4dd64855ed1e3d44060be25f26c2e6 MYDOMAIN
trust chain(2):
b5567d6c9eef05f07966d98eb2a85716bff4e80d MYDOMAIN
+-> 0115e5345e4dd64855ed1e3d44060be25f26c2e6 MYDOMAIN
Verified OK


but i'm currently unable to sync my exchange 2007 account, i've got the same error from my device "Either exchange server requires a secure connection or your account is disabled". "


Am I doing something wrong ?


i've enabled logging, here's the log file, if someone can help i'll appreciate :)

thanks !
Code:

Apr 20 16:56:07 Nokia-N900-51-1 [1427]: activesync: AS-COMMON-UTILS Version: libas-common-utils (0.0.2-27+0m5) unstable; urgency=low
Apr 20 17:00:19 Nokia-N900-51-1 [1018]: activesync: AS-COMMON-UTILS Version: libas-common-utils (0.0.2-27+0m5) unstable; urgency=low
Apr 20 17:01:13 Nokia-N900-51-1 [1385]: activesync: AS-COMMON-UTILS Version: libas-common-utils (0.0.2-27+0m5) unstable; urgency=low
Apr 20 17:01:25 Nokia-N900-51-1 activesync[1405]: AS-COMMON-UTILS Version: libas-common-utils (0.0.2-27+0m5) unstable; urgency=low
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: AsConfigReader: unable to read string value of parameter 4 in account ActiveSyncAccount1. Error 5
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: AsConfigReader: unable to read string value of parameter 0 in account ActiveSyncAccount1. Error 5
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: CurlConnectionManager: cannot get CfgConnExchangeServer
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: AsConfigReader: unable to read string value of parameter 5 in account ActiveSyncAccount1. Error 5
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: CurlConnectionManager: cannot get CfgCredUsername
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: AsConfigReader: unable to read string value of parameter 6 in account ActiveSyncAccount1. Error 5
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: CurlConnectionManager: cannot get CfgCredEncryptedPassword
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: AsConfigReader: unable to read string value of parameter 5 in account ActiveSyncAccount1. Error 5
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: SyncScheduler: cannot get CfgCredUsername
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: AsConfigReader: unable to read string value of parameter 0 in account ActiveSyncAccount1. Error 5
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: CurlConnectionManager: cannot get CfgConnExchangeServer
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: SyncScheduler: Cancel all actions
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: ASDAEMON Version: 'as-daemon (0.0.2-28+0m5) unstable; urgency=low' starting
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: GLIB DEBUG ConIc - con_ic_connection_send_event(0x18c810, a0feb19a-003f-494c-bb6e-bbcc8186cc3d, WLAN_INFRA, 0)
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: ICListener: IAP 'a0feb19a-003f-494c-bb6e-bbcc8186cc3d' with bearer 'WLAN_INFRA': connected; count 1
Apr 20 17:01:30 Nokia-N900-51-1 activesync[1405]: StoreProxyImpl::getContactVersion not ready to get version, folderId=
Apr 20 17:02:03 Nokia-N900-51-1 activesync[1405]: CurlConnectionManager: cURL errorcode = 6
Apr 20 17:02:03 Nokia-N900-51-1 activesync[1405]: CurlConnectionManager: cURL errorcode = 6
Apr 20 17:02:21 Nokia-N900-51-1 activesync[1405]: AS-LIB: Version: libas-protocol (0.0.2-28+0m5) unstable; urgency=low
Apr 20 17:03:52 Nokia-N900-51-1 activesync[1405]: HTTP STATUS: 400
Apr 20 17:03:52 Nokia-N900-51-1 activesync[1405]: AS-LIB: Received HTTP response 400. Factory not created


pumo 2010-04-21 05:28

Re: Mail for Exchange (MfE). Blame me here, pls
 
I got allmost working.
After configuration mfe account I get in first sync in configuration "Error in communication with Exchange Server".
and I have to cancel whole configuration, so no settings will be saved.
I tried sync only calendar or contacts, same error.

wiki says installing mfefolders and disable deleted item sync, but it won't do that because there isn't active account yet.
what should I do ?

Rob1n 2010-04-21 08:28

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by pumo (Post 620433)
I got allmost working.
After configuration mfe account I get in first sync in configuration "Error in communication with Exchange Server".
and I have to cancel whole configuration, so no settings will be saved.
I tried sync only calendar or contacts, same error.

wiki says installing mfefolders and disable deleted item sync, but it won't do that because there isn't active account yet.
what should I do ?

If you get the same error with just syncing contacts, then it's not the "Deleted Items" issue. Have a look at the wiki entry linked from the first post in this thread - there's instructions there on enabling debug logging.

Rob1n 2010-04-21 08:29

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by RoRoD (Post 619523)
i've enabled logging, here's the log file, if someone can help i'll appreciate :)

I'm afraid I can't see anything useful there :( It looks like it's failing to read any of the configuration settings you've just made, but I've no idea why, or how to fix that.

RoRoD 2010-04-21 10:01

Re: Mail for Exchange (MfE). Blame me here, pls
 
I'me currently hard resetting the N900, and re check every exchange 2007 parameters.
thanks.

pumo 2010-04-21 10:48

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 620613)
If you get the same error with just syncing contacts, then it's not the "Deleted Items" issue. Have a look at the wiki entry linked from the first post in this thread - there's instructions there on enabling debug logging.

I logged this, what lines should I search for errors?

here is some parts of log where error appears
Code:

Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: AsConfigReader: unable to read string value of parameter 4 in account ActiveSyncAccount1. Error 5
Apr 21 13:17:38 Nokia-N900-42-11 [1368]: activesync: modest_activesync_plugin_on_queue_changed(0)
Apr 21 13:17:38 Nokia-N900-42-11 [1368]: activesync: modest_activesync_plugin_on_queue_changed: operation added
Apr 21 13:17:38 Nokia-N900-42-11 [1368]: activesync: END modest_activesync_plugin_on_queue_changed
Apr 21 13:17:38 Nokia-N900-42-11 [1368]: activesync: modest_activesync_plugin_on_operation_started(9, 0x9da20)
Apr 21 13:17:38 Nokia-N900-42-11 [1368]: activesync: modest_activesync_plugin_on_operation_started() end
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgConnDeviceId err=5, value=
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: max Sync folders = 50
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: max GetItemEstimate folders = 50
.
.
.
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: AsConfigReader: unable to read string value of parameter 0 in account ActiveSyncAccount1. Error 5
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgConnExchangeServer err=5, value=
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: CurlConnectionManager: cannot get CfgConnExchangeServer
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgConnPort err=0, value=443
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgConnSecureConnection err=0, value=1
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: AsConfigReader: unable to read string value of parameter 5 in account ActiveSyncAccount1. Error 5
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgCredUsername err=5, value=
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: CurlConnectionManager: cannot get CfgCredUsername
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: AsConfigReader: unable to read string value of parameter 6 in account ActiveSyncAccount1. Error 5
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgCredEncryptedPassword err=5
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: CurlConnectionManager: cannot get CfgCredEncryptedPassword
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgCredDomain err=0, value=
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: mCertdir='/etc/certs/common-ca:/home/user/.maemosec-certs/ssl-ca'
.
.
.

Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgMailSendPolicy err=0, value=0
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: AsConfigReader: unable to read string value of parameter 5 in account ActiveSyncAccount1. Error 5
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgCredUsername err=5, value=
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: SyncScheduler: cannot get CfgCredUsername
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: AsConfigReader: unable to read string value of parameter 0 in account ActiveSyncAccount1. Error 5
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: get CfgConnExchangeServer err=5, value=
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: CurlConnectionManager: cannot get CfgConnExchangeServer
Apr 21 13:17:38 Nokia-N900-42-11 activesync[1383]: CurlConnectionManager: haveAccount=0


Rob1n 2010-04-21 17:19

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by pumo (Post 620799)
I logged this, what lines should I search for errors?

Unfortunately this looks just the same as RoRoD had - it looks like MfE is failing to read the configuration parameters. I don't know whether this should be happening or not, or what to do about it.

pumo 2010-04-22 07:53

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 621286)
Unfortunately this looks just the same as RoRoD had - it looks like MfE is failing to read the configuration parameters. I don't know whether this should be happening or not, or what to do about it.

do you mean failing to read from server or phone

Rob1n 2010-04-22 08:12

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by pumo (Post 622108)
do you mean failing to read from server or phone

From phone - it doesn't look to be even trying to connect to the server (probably because it's failing to even read the server name).

EDIT: In fact, it does look to have connected - the first few messages show that it's retrieving the number of items, so it must have reached the server. I don't know why it's then starting to report failures to read the configuration settings.

RoRoD 2010-04-22 11:17

Re: Mail for Exchange (MfE). Blame me here, pls
 
I've reset the N900, reimport my certificates (server and Email)
recheck exchange 2007 parameters (owa, IIS properties & securtiy setting, ensuring al is set as if the server was out of the box (witch was the case)).

and now everything works directly !

I don't know what happend but everything is ok :)

pumo 2010-04-23 07:48

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by RoRoD (Post 622326)
I've reset the N900, reimport my certificates (server and Email)
recheck exchange 2007 parameters (owa, IIS properties & securtiy setting, ensuring al is set as if the server was out of the box (witch was the case)).

and now everything works directly !

I don't know what happend but everything is ok :)

did you just reflash newest firmware to n900 ?
or reflash mmc ?

venkat_appineni 2010-04-26 14:42

Re: Mail for Exchange (MfE). Blame me here, pls
 
All,

Just got my new N900. I have updated to the latest PR1.1.1 version and Iam not able to sync with my Exchange 2003. Captured the syslog and following are few lines. Can you help me with the issue

Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: Transfer-Encoding: chunked
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: Vary: Accept-Encoding
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: X-AspNet-Version: 2.0.50727
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: X-Powered-By: ASP.NET
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: AS-LIB: FolderSync response received (403)
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: AS-LIB: FolderSync ends with status 403
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: AS-LIB: Action execution ends with status 403
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: AS-LIB: FolderSync failed with status 403. Abort retrieving estimations
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: AS-LIB: Action execution ends with status 403
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: ActionFullSync: ItemEstimate failed with status 403. Abort.
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: ActionFullSync::doExecute end
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: ActionWarpper - action completed with result 403
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: SyncScheduler::onSyncCompleted aStatus=403, mForcedSchedule=-1
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: StoreProxyImpl::freeSpaceAvailable avail=471460, blocks=516052, aSize=0, bsize=4096, result=1
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: UiNotifier::showInfoBanner aId=1
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: UiNotifier::showInfoBanner aText=Exchange account disabled. Access refused.

Thanks,
Venkat

wmarone 2010-04-26 14:58

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by venkat_appineni (Post 628370)
Apr 24 17:26:18 Nokia-N900-51-1 activesync[1423]: UiNotifier::showInfoBanner aText=Exchange account disabled. Access refused.

Mmm, might want to talk to your exchange admin, you seem to have been locked out!

Rob1n 2010-04-26 15:12

Re: Mail for Exchange (MfE). Blame me here, pls
 
It could mean that they don't support non-provisionable devices.

venkat_appineni 2010-04-26 15:15

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by wmarone (Post 628382)
Mmm, might want to talk to your exchange admin, you seem to have been locked out!

I will check with my exchange admin, Do you know what Error 403 means.. Iam almost at the point of putting my N900 on ebay.

Rob1n 2010-04-26 15:17

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by venkat_appineni (Post 628409)
I will check with my exchange admin, Do you know what Error 403 means.. Iam almost at the point of putting my N900 on ebay.

The 403 is the HTTP response code - it means "access forbidden"

venkat_appineni 2010-04-26 19:34

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 628411)
The 403 is the HTTP response code - it means "access forbidden"

Thanks Rob1n, does this mean exchange forbids non-provisioned devices ?

wmarone 2010-04-26 20:59

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by venkat_appineni (Post 628824)
Thanks Rob1n, does this mean exchange forbids non-provisioned devices ?

If the admin configures it as such, it will forbid devices that do not claim to be provisionable. That said, 403 just means access denied. You could be blocked for other reasons as well.

venkat_appineni 2010-04-27 05:53

Re: Mail for Exchange (MfE). Blame me here, pls
 
I have my exchange admin move my account to Exchange 2007. Now I get a different error when I try to sync

"Error in Exchange Server"

Following are the logs. Appreciate if someone can help

Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: Executing item estimate...
Apr 26 22:46:37 Nokia-N900-51-1 [2066]: activesync: as_progress_widget_init_progress_changed()
Apr 26 22:46:37 Nokia-N900-51-1 [2066]: activesync: as_progress_widget_init_progress_changed(20) got
Apr 26 22:46:37 Nokia-N900-51-1 [2066]: activesync: as_progress_widget_init_progress_changed() end
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: FolderSync started
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl: getFolderSyncKey enter
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl: getFolderSyncKey end
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: FolderSync restart with SyncKey=0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl: clearStorage enter
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl: setFolderSyncKey enter, aSyncKey=0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl: setFolderSyncKey end, res=0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl: clearStorage end
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: Sending FolderSync request...
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: CurlConnectionManager: sendReceive: enter
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON: ICListener IAPs count = 1
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON: ICListener proxyHost: usessl = 1, proxy_host = (null)
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: HTTP REQUEST: POST https://server.company.com/Microsoft...ype=SmartPhone
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-CONN: startSession start, aWait=30 seconds
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-CONN: CURL-CONN-CALLBACK: Action=2
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-CONN: CURL-CONN-CALLBACK: Action=1
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-PING: Ping is disabled.. Ignore Ping action
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-CONN: CURL-CONN-CALLBACK: Action=4
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-CONN: startSession end, ret=0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-PERF: Transfered 509 bytes in 0 seconds. Transfer rate is 0 Kb/sec
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: CurlConnectionManager: sendReceive attempt 1: CancelErr=0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: HTTP REQUEST headers:
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: User-Agent: N900/1.1
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Host: server.company.com
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Connection: Keep-Alive
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Authorization: <skipped>
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: MS-ASProtocolVersion: 12.1
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Content-Type: application/vnd.ms-sync.wbxml
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Content-Length: 13
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: HTTP STATUS: 503
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: HTTP RESPONSE headers:
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Cache-Control: private
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Connection: Keep-Alive
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Content-Length: 0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Date: Tue, 27 Apr 2010 05:46:17 GMT
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Server: Microsoft-IIS/6.0
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: Set-Cookie: cadata6CEC7A068D5B49E2967322A7E5E82C9B="02c08ca55-a9f1-4ce8-b422-d4c9a85a6dc2yQQTBAFtAV5Sxs4tFKKUBHUNT8cK9CQQXpJo1O F3w591iK5fOTiXP2hweTOXJSbtAHiEOAbEfybvxBgTu4QgRfIx Ri74ptuh7y/cATWo30VD2poc/vlgi6gh2IHqYBgnRFWVyuzbxf3MCjsIjGZjz+KdxhpvL/Oxxk7OE7PTP0o="; HttpOnly; secure; path=/
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: X-AspNet-Version: 2.0.50727
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: X-Powered-By: ASP.NET
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: FolderSync response received (503)
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: FolderSync ends with status 503
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: Action execution ends with status 503
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: FolderSync failed with status 503. Abort retrieving estimations
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AS-LIB: Action execution ends with status 503
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ActionFullSync: ItemEstimate failed with status 503. Abort.
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ActionFullSync::doExecute end
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ActionWarpper - action completed with result 503
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: SyncScheduler::onSyncCompleted aStatus=503, mForcedSchedule=-1
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: StoreProxyImpl::freeSpaceAvailable avail=471185, blocks=516052, aSize=0, bsize=4096, result=1
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: UiNotifier::showInfoBanner aId=9
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: UiNotifier::showInfoBanner aText=Error in Exchange server
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: QString StoreProxyImpl::getUpdatedItems()
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: currentUploaded=''
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: ASDAEMON-SYNC: Sync mail complete: Camel ActiveSync provider is notified
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AsStatusManager::handleSyncCompleted(1, 503)
Apr 26 22:46:37 Nokia-N900-51-1 activesync[1987]: AsStatusManager::handleSyncFailed(1, 1, 9)
Apr 26 22:46:37 Nokia-N900-51-1 [1062]: activesync: systemmonitor.cpp Line 117, static void AsSystemMonitor::statusListener(AsSystemMonitor*): AsSystemMonitor::statusListener() begin


Seems like Iam getting error 503. Anyone else had this before ?

What should I ask my exchange admin to check further ?

-Venkat

Rob1n 2010-04-27 10:51

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by venkat_appineni (Post 629322)
ISeems like Iam getting error 503. Anyone else had this before ?

What should I ask my exchange admin to check further ?

That could be the problem with the "Deleted Items" folder. Is this after completing the MfE setup? If so, install the MfEfolders app and disable the "Deleted Items" folder (and any other unwanted folders).

venkat_appineni 2010-04-27 14:59

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 629686)
That could be the problem with the "Deleted Items" folder. Is this after completing the MfE setup? If so, install the MfEfolders app and disable the "Deleted Items" folder (and any other unwanted folders).


This is the new setup. It does not even complete. Will I be able to install Mfefolders app and select during initial initialization ?

Rob1n 2010-04-27 15:41

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by venkat_appineni (Post 629992)
This is the new setup. It does not even complete. Will I be able to install Mfefolders app and select during initial initialization ?

No, the MfEfolders app requires the configuration to have completed. Where is it hitting this issue - can you (temporarily) disable email sync before that point?

crasbelize 2010-04-27 17:02

Re: Mail for Exchange (MfE). Blame me here, pls
 
MFE is working with NuevaSync!

and NuevaSync is free.....an not sure if everybody knew.

u don't need SyncEvalution.

venkat_appineni 2010-04-27 18:22

Re: Mail for Exchange (MfE). Blame me here, pls
 
Got it working.. Not sure what changed but this morning I tried again and its all good now..

Thanks for everyone who helped me.. I took down my Ebay ad selling Nokia N900 :)

-Venkat

cyeung 2010-04-29 01:36

Re: Mail for Exchange (MfE). Blame me here, pls
 
For those of you still having trouble with syncing with Google while on Wi-Fi, try this:
  1. Go to System -> Settings.
  2. Go to Internet connections.
  3. Tap Connections.
  4. Select the wireless access point you are on and tap Edit.
  5. Tap Next until you see "Connection setup: Complete"
  6. Tap Advanced.
  7. Under the Other tab, change Power saving to On(intermediate).
  8. Tap Save, Finish, Done, and then Save to close out.
I would like to track how many people this procedure works for, so please hit "Thanks" if that fixed things on a consistent basis.

nemchua 2010-05-04 15:04

Re: Mail for Exchange (MfE). Blame me here, pls
 
Hi all,

My N900 is almost perfect except the MfE part (of course). I'm using Microsoft Exchange 2007 for company mail, had no problem for calendar and taks sync. But if i turn on email synchronize then MfE response 'Exchange server is no longer response' or something similar. Then i install the MfE folder and disable all mail folders except only one folder for testing. Now the MfE can sync email very fast and it can even display mail notifications include mail sender and subject! But when i open Mail for Exchange, although it displays like '2 new emails' there is nothing in the folder :-(.

I think my MfE N900 is almost works, except the mail contents now are somewhere in the air, or the MfE folder permissions are not correct. I hope you guys can help me to solve the problem.

Thanks in advance

Rob1n 2010-05-04 15:10

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by nemchua (Post 642536)
Hi all,

My N900 is almost perfect except the MfE part (of course). I'm using Microsoft Exchange 2007 for company mail, had no problem for calendar and taks sync. But if i turn on email synchronize then MfE response 'Exchange server is no longer response' or something similar. Then i install the MfE folder and disable all mail folders except only one folder for testing. Now the MfE can sync email very fast and it can even display mail notifications include mail sender and subject! But when i open Mail for Exchange, although it displays like '2 new emails' there is nothing in the folder :-(.

I think my MfE N900 is almost works, except the mail contents now are somewhere in the air, or the MfE folder permissions are not correct. I hope you guys can help me to solve the problem.

Thanks in advance

It sounds like it should be all working. Is your test folder a top-level folder? It may be that there's a problem if you only enable a nested folder and not it's parent(s). The only other thing I can think of which would cause this is if you have some rules moving emails around after delivery.

nemchua 2010-05-04 15:33

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by Rob1n (Post 642547)
It sounds like it should be all working. Is your test folder a top-level folder? It may be that there's a problem if you only enable a nested folder and not it's parent(s). The only other thing I can think of which would cause this is if you have some rules moving emails around after delivery.

True, it's a sub folder and i have use rules to move the incoming messages to sub folder. But if i enable the top folder (inbox) then I will get the error message 'Exchange server did not response..." after a while :confused:

Rob1n 2010-05-04 15:47

Re: Mail for Exchange (MfE). Blame me here, pls
 
Quote:

Originally Posted by nemchua (Post 642608)
True, it's a sub folder and i have use rules to move the incoming messages to sub folder. But if i enable the top folder (inbox) then I will get the error message 'Exchange server did not response..." after a while :confused:

You shouldn't do - the "Deleted Items" folder is the only one I know of which causes sync issues. If you do, you'll have to try enabling the logging (see the first post in this thread) to see why it's happening.

nemchua 2010-05-04 16:56

Re: Mail for Exchange (MfE). Blame me here, pls
 
Below are logs when i open the sub folder name 'P812' in Mail for Exchange program. The 'Inbox' folder is not accessible

Quote:

May 4 23:49:12 Nokia-N900-42-11 [1512]: activesync: camel-as-store.c Line 338, as_get_folder: Thread 0x354aa8 CAMEL PLUGIN: as_get_folder(Inbox/P812)
May 4 23:49:12 Nokia-N900-42-11 [1512]: activesync: camel-as-folder.c Line 362, camel_as_folder_new: Thread 0x354aa8 CAMEL PLUGIN: camel-as-folder.c:camel_as_folder_new
May 4 23:49:12 Nokia-N900-42-11 [1512]: activesync: protocolwrapper.cpp Line 282, void acquireSemaphore(): Thread 0x354aa8 AS CAMEL: storageSemaphore: Acquire semaphore
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: protocolwrapper.cpp Line 299, void releaseSemaphore(): Thread 0x354aa8 AS CAMEL: storageSemaphore: Release semaphore
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: camel-as-folder.c Line 381, camel_as_folder_new: Thread 0x354aa8 !!!Folder is invalid!!!
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: camel-as-store.c Line 338, as_get_folder: Thread 0x354aa8 CAMEL PLUGIN: as_get_folder(Inbox/P812)
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: camel-as-folder.c Line 362, camel_as_folder_new: Thread 0x354aa8 CAMEL PLUGIN: camel-as-folder.c:camel_as_folder_new
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: protocolwrapper.cpp Line 282, void acquireSemaphore(): Thread 0x354aa8 AS CAMEL: storageSemaphore: Acquire semaphore
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: protocolwrapper.cpp Line 299, void releaseSemaphore(): Thread 0x354aa8 AS CAMEL: storageSemaphore: Release semaphore
May 4 23:49:13 Nokia-N900-42-11 [1512]: activesync: camel-as-folder.c Line 381, camel_as_folder_new: Thread 0x354aa8 !!!Folder is invalid!!!
May 4 23:49:24 Nokia-N900-42-11 [1512]: activesync: camel-as-store.c Line 338, as_get_folder: Thread 0x354aa8 CAMEL PLUGIN: as_get_folder(Inbox/P812)
May 4 23:49:24 Nokia-N900-42-11 [1512]: activesync: camel-as-folder.c Line 362, camel_as_folder_new: Thread 0x354aa8 CAMEL PLUGIN: camel-as-folder.c:camel_as_folder_new
May 4 23:49:24 Nokia-N900-42-11 [1512]: activesync: protocolwrapper.cpp Line 282, void acquireSemaphore(): Thread 0x354aa8 AS CAMEL: storageSemaphore: Acquire semaphore

SkyEagle 2010-05-09 12:43

Re: Mail for Exchange (MfE). Blame me here, pls
 
Hi Vitally !

It's a long time we don't see you on Talk ...I tried to sent you also private mail but it seems you didn't see them or don't have time to reply...I understand that you're having hard work coding...

As I told in the last mail, I see you finally managed to resolve the famous bug 7971. ! ...Great job ! Thank you for fix this bug !

I only fear that this fix won't be part of PR 1.2, since it is frozen code or am I wrong ?
I really hope to see the PR 1.2 update coming soon, since the PR 1.2 situation is becoming really strange and now everything is "frozen" in maemo world for waiting this big update.

Is not possible to have the fix for the bug 7971 in order to test it ?
If you need I can sign for NDA agreement...if it not included in PR 1.2 we REALLY NEED TO have before the next PR 1.3 (that will be many months away I fear, perhaps afetr Meego on N900)

I really need to start using this N900 and this is the main reason that is keeping the device in the box :-(.

Thanks again for the efforts and your time for the reply,
Regards,
Cesare


All times are GMT. The time now is 09:09.

vBulletin® Version 3.8.8