Menu

#236 Application using Davmail to connect to Office365.outlook.com stopped downloading messages suddenly.

v1.0 (example)
closed
nobody
5
2015-02-22
2015-02-12
Manju Mohan
No

Hi,

I am creating this ticket after I had gone through all the forums related to the subject and tags.

We have an application which is limited to use only pop/smtp which connects to Davmail on a Linux server. Davmail, in turn connects to office365.outlook.com on port 443. The setup has been working for an year and two days before it stopped working. The application has around 6 mailboxes which connect to Davmail for downloading messages. On the same mailbox we have postfix which is used to send mails to outside world, it is working fine. We have EWSenabled=true from the day one and i believe only then it was working for more than a year. The exchange is on 2010. Dav mail version is davmail-4.3.3-134.1.x86_64 installed as an rpm.

After much trouble shooting for around 30 hours, only one mailbox is successfully able to download mails. DavMail Properties are as below.

[root@la6gty01 ~]# cat /etc/davmail.properties

DavMail settings

davmail.url=https://outlook.office365.com/EWS/Exchange.asmx
davmail.enableEws=true

davmail.enableEws=auto

davmail.ldapPort=1389
davmail.caldavPort=1080
davmail.smtpPort=1025
davmail.popPort=110
davmail.imapPort=143
davmail.proxyPort=
davmail.disableUpdateCheck=true
davmail.bindAddress=
davmail.logFilePath=/var/log/davmail.log
davmail.server=true
davmail.server.certificate.hash=
davmail.caldavPastDelay=90
davmail.sentKeepDelay=90
davmail.keepDelay=30
davmail.allowRemote=true
davmail.enableProxy=false
davmail.proxyHost=
davmail.proxyPassword=
davmail.proxyUser=
log4j.logger.davmail=DEBUG
log4j.logger.httpclient.wire=WARN
log4j.logger.org.apache.commons.httpclient=WARN
log4j.rootLogger=WARN
davmail.enableKeepalive=false

Related

Discussion: Login Fails in o365 starting in the last two weeks

Discussion

  • Manju Mohan

    Manju Mohan - 2015-02-12

    We also tried with the latest version (non rpm) davmail-4.6.0-2331. Still we are facing the same issue.
    "-ERR EWS end point not available"

     
  • Adrien Chevrier

    Adrien Chevrier - 2015-02-13

    Same problem here happened at the same moment, davmail displays a "EWS endpoint not available".
    I have been using the same conf for months without a single problem.

    My EWS URL is the same (https://outlook.office365.com/EWS/Exchange.asmx).
    I installed Exquilla to see if the endpoint really wasn't available but I successfully managed to connect and retrieve my emails.

    I installed the latest davmail release (4.6.0-2331), no changes.

     
  • Mickael Guessant

    A recent change on Office 365 breaks DavMail endpoint url check.
    Basically a GET request on /ews/exchange.asmx no longer redirects to the wsdl file, and Exchange now returns a 500 error when trying to retrieve services.wsdl.

    The good news is that I committed a patch yesterday to replace wsdl check with a standard get folder request on root folder, this should fix the issue for Office365 users.

     
  • Manju Mohan

    Manju Mohan - 2015-02-13

    Thanks Mickael for your help and research. This will truly save us. Can you please provide us the rpm with the mentioned patch?

    Thanks for replying Adrien. Feeling sorry that you are also facing the same troubles.

     
  • ebo

    ebo - 2015-02-15

    I'm happy to see that I'm not allone and the cause is known :) I have exact the same problem here since 10 or 11 February (I thought of an Exchange server update or It departement blocked EWS)
    Hopefully there is a solution/new version within a few days. Very thanks for the work.
    greetings from Belgium
    working on windows 8.1 with Postbox

     

    Last edit: ebo 2015-02-15
  • Alexxx

    Alexxx - 2015-02-16

    I'm also glad to see that this problem has been pinpointed and should soon be resolved, as I was going crazy trying to figure it out (especially as Exquilla showed that the endpoint was working)!

    Mickaël, do you have an ETA for the new version? It would be much appreciated. Thanks in advance.

     
  • Alexxx

    Alexxx - 2015-02-17

    Just saw release 4.6.1 this evening. All problems resolved. Many thanks.

     
  • Mickael Guessant

    • status: open --> accepted
     
    • Manju Mohan

      Manju Mohan - 2015-02-18

      Can you please delete the attachments? I did not know how to send it to you alone. There are two attachments I have sent.

       
  • Mickael Guessant

    Only found (and deleted) one attachment ?

    Update to RPM based distributions users : 4.6.1 RPM available on SourceForge

     
  • ebo

    ebo - 2015-02-18

    Works again thanks a lot .
    Erik

     
  • Manju Mohan

    Manju Mohan - 2015-02-18

    Hi Mickael, Thanks for you work and help. we have downloaded, installed and tested. Its working fine and application is able to download the messages.

     
  • Mickael Guessant

    • status: accepted --> closed
     

Log in to post a comment.