[Q] Exchange Email Problem - Any Adivce - General Questions and Answers

Does anyone know the reason or have a good solution to the "unable to open connection to server" error when adding an exchange account?
I have this issue on CM5.0.8, CM6 and CM6.1.0RC1
I have an HTC Magic Sapphire PVT 32B / HBoot 1.33.2005 / Radio 2.22.19.261
The only way i have been able to connect to my works exchange email account has been on CM5.0.8 using the old HTC Work Email app i found. I know it works on a stock EVO my company requires a lock package installed and remote wipe, but assuming that it worked on the old HTC Work Email i am assuming that i should work with the Vanilla Email app for 2.2. So I would like to use the stock 2.2 email app to connect if possible.
When i try and add the email account i get the "unable to open connection to server". It seems like the request is not reaching the https server before it times out? or some other issue... I have read plenty of users with this type of issue but every answer seems different and i have tried replacing the email.apk a few times without luck but those same posts said the one in cm5.0.8 worked flawless for them
Side Note ? Is there a way to load the HTC Evo Email application onto my Magic? I noticed that it has a different setup screen much like the old HTC Work Email app, I just wished the old Work Email app would work on 2.2 without crashing...
Any help would be awesome....

Try setting the exchange server as your companies OWA site. its normally owa.companyname.org/com or whatever. This was the key for me.

I tried that and no Luck, Thanks Anyway
I have been reading that solution on a few forums and thought it was odd, but only have used exchange though this one company and also google before.
My company uses the web address of sync.companyname.com and to use owa I access it though owa.companyname.com
Anyone have any other ideas?

Can anyone help me decode and figure out what to try next with my LogCat? Captured when trying to add the Exchange account and getting the error "unable to open connection to server". From my quick research this might be because of my company using there own signed server?
D/Email ( 624): Begin check of incoming email settings
D/EAS SyncManager( 624): !!! EAS SyncManager, onCreate
I/ActivityManager( 170): Displayed activity com.android.email/.activity.setup.A
ccountSetupCheckSettings: 384 ms (total 384 ms)
D/dalvikvm( 624): GC_FOR_MALLOC freed 7374 objects / 447408 bytes in 104ms
D/NativeCrypto( 624): Freeing OpenSSL session
V/EmailServiceProxy( 624): validate returns 1
D/EAS SyncManager( 624): !!! EAS SyncManager, onDestroy

Related

Gmail says "your email will appear shortly"

Hi All,
Hi ,
I hae updated to Asian froyo yesterday night and since then i am haing this problem.
My gmail app says" your email will appear shortly" but when I tried to add my Wife gmail account it got added instantly and is syncing fine. I tried factory reset and clearing cache things.. nothing seem to work . The email is working fine in mobile browser and samsung galaxy S stock email client . Market and other apps are also working perfectly. Not sure what is the problem . I hae also contacted google to get some help .. no replies till now..
Do you guys know anything on this ..
Please help
Thanks
have exactly the same problem! all of a sudden.. never happened before!
my second gmail account is working fine and the email app is syncing both accounts flawlessly... Just the gmail app is stuck on "your email will be appear shortly" on my main account !!!!
Tried wiping, deleting gmail app data and anything else I could... nothing worked!!
Please help!
can anybody please help on this? I'm running out of ideas...
here is a logcat, I think the problem can maybe found there...
are these lines in particular any interesting..?
I/Gmail ( 6414): getStartSyncRequest: handledServerOpId: 0, upperFetchedConvoId: 0, lowerFetchedConvoId: 0, ackedClientOp: 0
D/dalvikvm( 6414): GC_FOR_MALLOC freed 5008 objects / 276232 bytes in 34ms
I/Resources( 6414): Loaded time zone names for en_US in 254ms.
W/ResponseProcessCookies( 6414): Cookie rejected: "[version: 0][name: GX][value: DQAAALQAAAAfP4N6HOQ_4paIpLHKOEeWndV7XQW6DbNUx31R1gNaAJnUTSpaeq7Be_zVlcY_ti_h5C8Ug8bZs1z_yipk8J0pfGkG20djCXwFxl9BJ3OF5KYCbD65_spQuysktP4TvlJtqREIbHSW9CPekJT6Sm11bVunLUxNoX9sdzRwYpFSAgG7oyoCEisJIhO-CKIY0GDBG1vZ7O9Z80IxIBD-xJyQ6y_-06obERYXgLxlAFrm42GDraFa5UnKJbSyAdER9c4][domain: mail.google.com][path: /proxy/gmail/mail][expiry: Fri Dec 03 08:07:46 GMT+01.00 2010]". Illegal domain attribute "mail.google.com". Domain of origin: "android.clients.google.com"
D/Gmail ( 6414): IO exception: java.io.IOException: Server returned unhandled response content type (text/html status: 500)
D/SyncManager( 163): failed sync operation authority: gmail-ls account: Account {[email protected], type=com.google} extras: [force=true ignore_settings=true ignore_backoff=true do_not_retry=true ] syncSource: 3 when: 5960191 expedited: false, SyncResult: stats [ numIoExceptions: 1]
D/SyncManager( 163): not retrying sync operation because SYNC_EXTRAS_DO_NOT_RETRY was specified authority: gmail-ls account: Account {[email protected], type=com.google} extras: [ignore_settings=true force=true do_not_retry=true ] syncSource: 3 when: 5961226 expedited: false
D/dalvikvm( 679): GC_FOR_MALLOC freed 8086 objects / 502424 bytes in 48ms
W/FlurryAgent( 3159): onStartSession called with duplicate context, use a specific Activity or Service as context instead of using a global context
Click to expand...
Click to collapse

VIP - Googlemail probs is server side

Troops,
If you are having Googlemail probs, it's not your device, it's server side with Google.
Here's the link, blurb underneath. I thought I had wrecked my settings after uninstalling more bloatware
http://www.google.co.uk/support/forum/p/Google+Mobile/thread?tid=14e9ec7ab723b817&hl=en
Quote:
This is a server-side issue as in the change was made to the IMAP server software likely. The expected format of the response has therefore changed and the stock Email app is not coded for this change. Some 3rd party apps have apparently run into this response before from an IMAP server and coded for it. If the server-side change is deemed a permanent change then we'll need to patch the Email app to handle it. Marc is checking to see if the change can be reversed and I'm looking into the code to see how it can be patched to handle the change if needed.
Looks like no one noticed, back to working again so whooohoooo

[Q] Lenovo P700i

Hello, I just bought Lenovo P700i from etotalk.com eshop. It is overall very good phone, nice build quality, very good battery life, but I have found some problems too. The worst problem is, that I cannot synchronize it with my Microsoft Exchange account (emails, contacts, ...). There are only two aco**** types available in the android account settings (Google account and Lenovo account), but there is no Corporate account type, which Is on my old android phone and my android tablet too. And there is only GMail client instaled, not the default android email client, which am I using to read my emails on my other android devices.
Can anyone help me to synchronize this phone with Microsoft Exchange account? 3rd party clients are not working with our Exchange server, only maildroid does, but it is pretty expensive and I do not like this app at all.
My phone is rooted, there is Exchange.apk in system/apps, what is this for? And there is no Email.apk in this directory...
Thank you...
Look for Mail.apk or Message.apk.
This should add the email client to the adndroid, am I right? But will this add even the possibility to add "corporate" account?
Hi,
I have the same phone and the same problem. I found Email.apk, but ran in to what seems to be a common problem in that active sync just did not work - there're lots of thread about exchange problems with Activesync and I never got to the bottom of what the problem is. For now I'm using Emoze for my exchange mail client and that works.
Another problem with the etotalk ROM is Caller ID - it does not match incoming numbers to contacts and I gather this is also a common problem with some of these Chinese phones. This fault has been corrected for other Lenovos (A789, A750) in custom ROMs - will any kind soul create a custom ROM for the P700i?
Thanks,
pingu.
1. same wish here, is there any custom ROM for this phone?
2. And one more issue with this phone, installed CatLog and found one error message in captured logs, which is repeating hundred times, does anyone know, what this error means and how to remove it?
08-14 18:54:46.230 E/IBINDER_HOOK( 3120): open whitelist file error
08-14 18:54:46.230 E/IBINDER_HOOK( 95): open whitelist file error
08-14 18:54:46.231 E/IBINDER_HOOK( 3120): open whitelist file error
08-14 18:54:46.231 E/IBINDER_HOOK( 95): open whitelist file error
08-14 18:54:46.232 E/IBINDER_HOOK( 3120): open whitelist file error
08-14 18:54:46.233 E/IBINDER_HOOK( 2931): open whitelist file error
...
I managed to get active sync working by using the Email and Exchange apps from this thread:
http://forum.xda-developers.com/showthread.php?t=1869133
Make sure you delete Any .odex files for Exchange or Mail.
Only problem that remains is caller ID. The Etotalk ROM is pants for this - all incoming calls are "Unknown contact" and landlines are also "unknown city" but some mobiles have some Chinese for the location!
I presume it will take a modified ROM to correct this?
Thanks,
Pingu
MESSED up mine
I got a brick..
[Device]
lenovo p700i
[Flashing tools]
SP_Flash_Tool_v3.1222.00
[ROM flashed]
a789_s227_cybermaus_ics_v2
I checked everyone's post and see that they have nice feedbacks
I flashed the ROM but the phone wont open anymore, it wont charge and wont connect to PC
Dunno why mine didnt work - anyway, thanks to Cybermaus for the matterials..
If anyone can still help, maybe we can still do something about the my phone, I will highly appreciate PM's, email me at [email protected], thanks
feljur said:
I got a brick..
[Device]
lenovo p700i
[Flashing tools]
SP_Flash_Tool_v3.1222.00
[ROM flashed]
a789_s227_cybermaus_ics_v2
I checked everyone's post and see that they have nice feedbacks
I flashed the ROM but the phone wont open anymore, it wont charge and wont connect to PC
Dunno why mine didnt work - anyway, thanks to Cybermaus for the matterials..
If anyone can still help, maybe we can still do something about the my phone, I will highly appreciate PM's, email me at [email protected], thanks
Click to expand...
Click to collapse
It's no wonder your phone won't turn on anymore. You should flash custom ROM like cybermaus from inside CWM Recovery, NOT from SP_Flash_Tool.

Solved: Exchange Services kills battery

There is a widespread problem with a process called "Exchange Services" on Android that rapidly drains device batteries. I have found references to the problem going at least as far back as Android 4.0. I can personally confirm that it happens on Android 4.4.2. And it happens on just about all devices, as far as I can tell.
I have:
Samsung Galaxy Note 10.1 (2012), on Android 4.1.2
Samsung Galaxy S4 (Verizon), on Android 4.4.2
Samsung Galaxy Tab Pro 8.4, on Android 4.4.2
For email, I have an Exchange account for work and an Exchange account for my personal domain.
Work email is on Exchange Server 2010 w/SP1.
Personal email was on Exchange Server 2007, up until around April.
Then it was on Exchange Server 2010 w/SP3, up until yesterday.
Now it is on Exchange Server 2013.
I have never had this problem on any device, with my work email (Exchange 2010 SP1).
I never had this problem on any device, when my personal email was on Exchange 2007.
I had this problem on all 3 devices after my personal email was upgraded to Exchange 2010 w/SP3.
I don't have this problem on any device now that my personal email has been moved to Exchange 2013.
On my S4 and my Note 10.1, I was able to get the problem to go away by deleting my personal Exchange account from the device, rebooting into Recovery and wiping cache, then re-adding the Exchange account to the device.
On my Tab Pro, nothing I did made the problem go away (when my personal email was on Exchange 2010 w/SP3). I went as far as doing a factory reset to completely wipe the tablet, then only adding the personal email account. And many other combinations in between. Nothing helped. I've had my Tab Pro 8.4 for about a month now and I have had to charge it every single day. If I didn't, it would die in less than 24 hours, even if I didn't use it at all. The only thing that would keep it from dying would be to turn off WiFi.
On my S4, I installed SafeStrap and the HyperDrive 17.1 ROM for a few days. I tried the S5 email client, the N3 email client, and the "stock w/security removed" email client (reflashing the whole ROM for each one) and they all exhibited this problem and I could not get it to go away. I finally Odin'ed back to the stock NC5 image and re-setup everything and had the problem. I deleted my personal email account, wiped cache, re-added personal email, and it went away again.
I enabled Exchange ActiveSync logging for my Tab Pro and for my S4 (can be done on the server, using Outlook Web Access, in Options) when it was having the problem and I identified what the actual problem is: The problem is that the device is constantly trying to sync and failing, so it keeps retrying continuously. Specifically, it is attempting to do a Sync on the Collection with CollectionID of "RI", which is the Recipient Info Cache collection. All the other collections sync okay, so your email, calendar, etc, sync and work just fine. But, the ActiveSync logs show that the Sync attempt on RI causes the server to generate an internal exception and then return a Status code of 8 (which, according to the documentation indicates that the collection has been moved or deleted).The device receives the status of 8 and immediately re-attempts to sync the RI. Over and over and over, once every 1 to 2 seconds. THIS is what was crushing the battery on my devices.
I investigated further and found that Microsoft actually has a patch available for this server bug. The KB article that describes the issue and provides the resolution is here:
http://support.microsoft.com/kb/2886469/en-us
The only thing that I feel like is still a mystery is why, for example, my phone would have this problem and then I could delete the account, wipe cache, and re-add the account and have the problem go away. Looking at logs of my phone syncing when it's actually working show that it Syncs RI and the server does not throw an exception. That is really strange. I guess I just have to settle for "stupid Microsoft!" and move on.
I spent the last couple of weeks trying to get my hosted Exchange provider (Apptix) to apply this MS patch to my server. They initially said they would have to test it in their lab, etc., and it could be a couple of months before they put it into production. Then, eventually they told me that they can't load it on my server with no explanation of why. In other words, Apptix SUCKS!! I was with them for years. They used to be MailStreet, but they changed names in the last year. I'm guessing AppTix bought MailStreet. MailStreet really used to be great! I would call Tech Support and the person who answered the phone would be totally competent and always handled any issue I had with 1 phone call - 2 at the most. Now that they are Apptix, their support sucks big green donkey parts. And, they more than doubled my monthly fees, in the name of premium support, too! How ironic!
With Apptix, after weeks of trying I was completely unable to get a resolution to this problem. They kept telling me it's just a known thing that devices using ActiveSync burn a lot of battery and I should just change my devices from Push to polling every 1 hour. They simply would not install the Microsoft patch that has been available for 9 MONTHS!
So, yesterday, I moved my domain to hosted Exchange with Rackspace.com. They are awesome. I was able to do the whole migration myself (except for one phone call to get them to add an Accepted Domain to my account for a subdomain that I need because I'm using Split Domain Routing - some mailboxes on Google and some on Rackspace), in about 2 hours. And I went from paying $33/month for 5GB of mailbox storage to $10/month for 100GB!
And, best of all, I moved all my devices over to my new account on Rackspace, where I'm on an Exchange 2013 server, and none of them have Exchange Services battery drain any more. My Tab Pro was burning through 80% of its battery in less than 20 hours. Today, it has been on battery for 15h 54m and battery is at 83%.
TL;DR: If you're having this problem, the FIX (vs some workarounds I've seen posted) is to either apply the Microsoft patch linked above to your Exchange 2010 server. You might have to upgrade it to Service Pack 3 first. OR, upgrade your server to Exchange Server 2013.
Caveat: I don't know for SURE that the MS patch will fix your problem, as I didn't get to try it. But, the problem description EXACTLY matches the logs I was generating, so I strongly suspect it will fix the problem.
If you want to see for yourself if this is the explanation for your own version of this problem, try this:
Login to Outlook Web Access for your email account. It has to be the full version, not the Light version.
In the upper right, click on Options/See All Options.
Then, in the left pane, click Phone.
Then, in the right pane, click on your device and then click on Start Logging.
If you don't see these options, you are not in the right version of OWA.
Leave logging on for 10 or 15 minutes, then, on the same screen, click on Retrieve Log.
This will stop logging and put the log file as an attachment to an email in your Inbox.
The log file can be opened in Notepad. It's XML. Look for something that looks like this (the part that says Microsoft.Exchange.AirSync.AirSyncPermanentException, and then the part at the bottom that says <Status>8</Status>):
Code:
RequestHeader :
POST /Microsoft-Server-ActiveSync/default.eas?Cmd=Sync&User=username%40yourdomain.com&DeviceId=SEC06A986F234C19&DeviceType=SAMSUNGSMT320 HTTP/1.1
Connection: keep-alive
Content-Length: 39
Content-Type: application/vnd.ms-sync.wbxml
Authorization: ********
Host: email.hostaccount.com
User-Agent: SAMSUNG-SM-T320/101.40402
MS-ASProtocolVersion: 14.1
X-MS-PolicyKey: 3365629650
X-Forwarded-For: 50.73.234.97
RequestBody :
<?xml version="1.0" encoding="utf-8" ?>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<SyncKey>1358440366</SyncKey>
<CollectionId>RI</CollectionId>
<DeletesAsMoves/>
<GetChanges/>
<WindowSize>10</WindowSize>
<Options/>
</Collection>
</Collections>
</Sync>
SyncCommand_OnExecute_Exception :
Microsoft.Exchange.AirSync.AirSyncPermanentException
at Microsoft.Exchange.AirSync.RecipientInfoCacheSyncCollection.OpenSyncState(Boolean autoLoadFilterAndSyncKey, SyncStateStorage syncStateStorage)
at Microsoft.Exchange.AirSync.SyncCommand.SyncTheCollection(SyncCollection collection, Boolean createSubscription, Boolean tryNullSync)
at Microsoft.Exchange.AirSync.SyncCommand.OnExecute()
LogicalRequest :
<?xml version="1.0" encoding="utf-8" ?>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<SyncKey>1358440366</SyncKey>
<CollectionId>RI</CollectionId>
<DeletesAsMoves/>
<GetChanges/>
<WindowSize>10</WindowSize>
<Options/>
</Collection>
</Collections>
</Sync>
Command_WorkerThread_Exception :
--- Exception start ---
Exception type: Microsoft.Exchange.AirSync.AirSyncPermanentException
Exception message:
Exception level: 0
HttpStatusCode: OK
AirSyncStatusCode: Ping_ServerError
XmlResponse:
<?xml version="1.0" encoding="utf-8" ?>
<Sync xmlns="AirSync:">
<Status>8</Status>
</Sync>
Exception stack trace: at Microsoft.Exchange.AirSync.SyncCommand.OnExecute()
at Microsoft.Exchange.AirSync.SyncCommand.ExecuteCommand()
at Microsoft.Exchange.AirSync.Command.WorkerThread()
Inner exception follows...
Exception type: Microsoft.Exchange.AirSync.AirSyncPermanentException
Exception message:
Exception level: 1
HttpStatusCode: InternalServerError
AirSyncStatusCode: ServerError
XmlResponse:
[No XmlResponse]
Exception stack trace: at Microsoft.Exchange.AirSync.RecipientInfoCacheSyncCollection.OpenSyncState(Boolean autoLoadFilterAndSyncKey, SyncStateStorage syncStateStorage)
at Microsoft.Exchange.AirSync.SyncCommand.SyncTheCollection(SyncCollection collection, Boolean createSubscription, Boolean tryNullSync)
at Microsoft.Exchange.AirSync.SyncCommand.OnExecute()
--- Exception end ---
AccessState :
Allowed
AccessStateReason :
Individual
ResponseHeader :
HTTP/1.1 200 OK
ResponseBody :
<?xml version="1.0" encoding="utf-8" ?>
<Sync xmlns="AirSync:">
<Status>8</Status>
</Sync>
ResponseTime :
07/08/2014 12:53:55
Hello,
Hope all is well,
So after reading this thread I went ahead and turned auto sync off from the notification panel. Deleted some accounts and only left my outlook account. For some reason exchange services keep waking up my cpu. Does anyone have the same issue, or can help me find a solution?
Thanks in advance

[Q] Gmail 5 issue 5mb attachment limit with 2007 exchange accounts

Hi,
I am having trouble getting exchange accounts to work on Gmail 5.0
Pre-lollipop update we were using the onboard android mail client with no worries, keen for the gmail integration we upgraded to gmail 5.0 where we discovered we cannot download or send attachments greater than 5mb when using an exchange account in gmail.
When downloading an attachment I get the following error "Couldn't download. Touch to retry."
When attaching a 5mb file I get "Can't attach file over 5mb."
The debugging I have done:
Files over 5mb can be downloaded/sent over wifi
All settings related to limits have been disabled
I have checked the exchange 2007 settings and there is a limit of 15mb set
Removing this limit did not help
Tested downloading an attachment using a gmail account, this was successful
Rolled back to lollipop with no updates: no success
Ensured all apps are OS is up to date
3rd party apps such as 'outlook' have no issue
I am able to download attachments greater than 5mb using OWA
I have tried multiple file types including PDF, ZIP and JPEG
Confirmed accounts are still working on email clients pre-gmail integration
Not getting anywhere from this I rooted a test phone and got the following information from logcat when attempting to download an attachment:
Code:
W/AttachmentService( 2363): Attachment #346 is not eligible for download
W/AttachmentService( 2363): Attachment #346 cannot be downloaded ever
I/ConvLayout( 2363): IN setHeight=386px of overlay item: [email protected]
W/AttachmentService( 2363): Attachment #346 is not eligible for download
W/AttachmentService( 2363): Attachment #346 cannot be downloaded ever
I/ConvLayout( 2363): IN setHeight=386px of overlay item: [email protected]
D/audio_hw_primary( 184): disable_audio_route: reset and update mixer path: low-latency-playback
D/audio_hw_primary( 184): disable_snd_device: snd_device(2: speaker)
I/wpa_supplicant( 884): wlan0: CTRL-EVENT-SCAN-STARTED
Vague results here didn't help me that much, is anyone here able to help with this issue I am having?
Unfortunately using a 3rd party mail application isn't a solution I can use for this.
Is this a known bug for the system?
Any help or advice for places to look is greatly appreciated, I have run out of ideas for trying to find what this issue is.
Thankyou
Hi There,
I have the same issue! Some users on google apps using the same app don't have this limitation, only users going through exchange.
This was also a problem in the original email app back in version 4 i think but was fixed in 4.4.....now the issue is back again!
Anyone have any idea if this was just a limit simply implemented by google?
Thanks
Pete

Categories

Resources