我在使用常规邮件应用将我的三星 Galaxy S4(Android 4.2.2)连接到我们的 Exchange 服务器时遇到了麻烦。我的一位同事也有一台 S4,他使用相同的 Android 版本等连接时没有遇到任何问题。这是我在调试日志中看到的内容:
Logger
Logger -------------- New Log --------------
Logger Model :GT-I9505
Logger Build :I9505XXUEMKF
Logger ChangeList :2082040
Logger -------------------------------------
2013-12-30 17:56:50:792 7910 9120 [AsyncTask #1] ExchangeService| !!! EAS ExchangeService, onCreate
2013-12-30 17:56:50:796 7910 7910 [main] ExchangeService| !!! EAS ExchangeService, onStartCommand, startingUp = false, running = false
2013-12-30 17:56:50:802 7910 9662 [Binder_4] AbstractSyncService<825>| Testing EAS: owa.ithost.be, ithost\ooms.veerle;null, ssl = 1
2013-12-30 17:56:50:812 7910 9662 [Binder_4] EmailProxy| host = null
2013-12-30 17:56:50:819 7910 9662 [Binder_4] EmailProxy| port = 0
2013-12-30 17:56:50:820 7910 9662 [Binder_4] ExchangeService| getClientConnectionManager ssl = true, port = 443
2013-12-30 17:56:50:826 7910 9662 [Binder_4] EasSynService| create and return deviceType : SAMSUNGGTI9505
2013-12-30 17:56:50:829 7910 9662 [Binder_4] EmailProxy| host = null
2013-12-30 17:56:50:830 7910 9662 [Binder_4] EasSynService| getUserAgent()
2013-12-30 17:56:50:831 7910 9662 [Binder_4] AbstractSyncService<825>| sendHttpClientOptions(): URI String:https://owa.myServer.be/Microsoft-Server-ActiveSync?Cmd=OPTIONS&User=myDomain%5CUser.Name&DeviceId=SEC19D1971555700&DeviceType=SAMSUNGGTI9505
2013-12-30 17:56:50:832 7910 9662 [Binder_4] AbstractSyncService<825>| Authorization:***********
2013-12-30 17:56:50:834 7910 9662 [Binder_4] AbstractSyncService<825>| MS-ASProtocolVersion:2.5
2013-12-30 17:56:50:835 7910 9662 [Binder_4] AbstractSyncService<825>| Connection:keep-alive
2013-12-30 17:56:50:836 7910 9662 [Binder_4] AbstractSyncService<825>| User-Agent:SAMSUNG-GT-I9505/101.403
2013-12-30 17:56:50:842 7910 9662 [Binder_4] EmailProxy| host = null
2013-12-30 17:56:50:845 7910 9662 [Binder_4] EmailProxy| port = 0
2013-12-30 17:56:50:847 7910 9662 [Binder_4] ExchangeService| getClientConnectionManager ssl = true, port = 443
2013-12-30 17:57:05:874 9094 9104 [Binder_1] EmailProvider| EmailProvider.query: uri=content://com.android.email.provider/hostauth?limit=1, selection : protocol="eas" match: 16384
2013-12-30 17:57:05:927 7910 9120 [AsyncTask #1] ExchangeService| !!! EAS ExchangeService, stopping self
2013-12-30 17:57:30:888 7910 9662 [Binder_4] AbstractSyncService<825>| executePostWithTimeout(): Unexpected exception org.apache.http.conn.ConnectTimeoutException: Connect to .. timed out
2013-12-30 17:57:30:890 7910 9662 [Binder_4] AbstractSyncService<825>| IOException caught: org.apache.http.conn.ConnectTimeoutException: Connect to .. timed out
2013-12-30 17:57:30:898 7910 7910 [main] ExchangeService| !!! EAS ExchangeService, onDestroy
2013-12-30 17:57:30:900 7910 7910 [main] DiscourseLogger| Service=destroyed sStop=false sServiceThread=Died
2013-12-30 17:57:30:925 9094 9377 [AsyncTask #3] EmailServiceProxy| validate returns 1
2013-12-30 17:57:30:928 9094 9094 [main] Email| message : null
2013-12-30 17:57:30:936 9094 9094 [main] DiscourseLogger| [email protected] status=failure reason=Cannot connect to server
2013-12-30 17:57:32:699 9094 9094 [main] Email| EmailFeature CscFeature_Email_EnableOnDeviceHelp: false
2013-12-30 17:57:33:693 9094 9094 [main] Email| EmailFeature CscFeature_Email_EnableOnDeviceHelp: false
2013-12-30 17:57:34:213 9094 9094 [main] Email| EmailFeature CscFeature_Email_EnableOnDeviceHelp: false
2013-12-30 17:57:39:438 9094 9094 [main] Email| EmailFeature CscFeature_Email_EnableOnDeviceHelp: false
2013-12-30 17:57:39:441 9094 9094 [main] AccountSetupExchange| Had to set CBACert in onNext = null
2013-12-30 17:57:39:443 9094 9609 [AsyncTask #5] EmailProvider| EmailProvider.query: uri=content://com.android.email.provider/hostauth, selection : address like ? and login like ? and protocol not like "smtp" match: 16384
2013-12-30 17:57:39:447 9094 9609 [AsyncTask #5] EmailProvider| EmailProvider.query: uri=content://com.android.email.provider/account, selection : emailAddress='[email protected]' COLLATE NOCASE match: 0
2013-12-30 17:57:39:464 9094 9094 [main] Email| AccountCheckSettingsFragment onActivityCreated
2013-12-30 17:57:39:465 9094 9094 [main] AccountCheckSettingsFragment| CM Test!!! default case= 4
2013-12-30 17:57:39:468 9094 9118 [AsyncTask #1] Email| Begin check of incoming email settings
2013-12-30 17:57:39:487 7910 7910 [main] DiscourseLogger| Service=created sStop=false
我尝试使用我们域 (myDomain.local) 的 FQDN 进行连接,因为我读到这可能是一个问题。还尝试不使用 SSL 进行连接。我确信我的凭据是正确的,但似乎连接超时了,但我不知道为什么……
答案1
我的防火墙阻止了手机和 Exchange 服务器之间的通信。这就是连接超时的原因。允许 Exchange 通信通过后,一切都很顺利。