[Evolution-users] ews - failed to update GAL

Torsten Krah krah.tm at gmail.com
Tue Apr 22 11:15:42 UTC 2025


Hi,

I am using evolution 3.52.x and every time I want to write a new mail,
I get an error reading:

"Failed to update GAL, legitimation failed"

And I get a modal dialog asking for my credentials - which are already
entered and I just hit okay + saving it in the password store and it
works.
Now I can close evolution, open it again and the same thing does happen
- anyone an idea?

I did add EWS_DEBUG=2 to the addressbook backend and this are the
results:

> POST /EWS/Exchange.asmx HTTP/1.1
> Soup-Debug-Timestamp: 1745319562
> Soup-Debug: ESoupSession 1 (0x775d08111050), SoupMessage 1 (0x775ccc006d80), GSocket 1 (0x775d08111ca0)
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Type: text/xml; charset=utf-8
> Content-Length: 842
> User-Agent: Evolution/3.52.0
> Connection: Keep-Alive
> Accept-Encoding: gzip, deflate, br
> Accept-Language: de-de, de;q=0.9, en;q=0.8
> Host: <redacted>
> Authorization: <redacted>
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:GetFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/types"><messages:FolderShape><BaseShape>Default</BaseShape></messages:FolderShape><messages:FolderIds><DistinguishedFolderId Id="inbox"/></messages:FolderIds></messages:GetFolder></SOAP-ENV:Body></SOAP-ENV:Envelope>


< HTTP/1.1 401 Unauthorized
< Soup-Debug-Timestamp: 1745319562
< Soup-Debug: SoupMessage 1 (0x775ccc006d80)
< Server: Microsoft-IIS/10.0
< WWW-Authenticate: NTLM <redacted>
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Basic realm="<redacted>"
< Date: Tue, 22 Apr 2025 10:59:22 GMT
< Content-Length: 0
< request-id: 463a6b11-ac37-44ad-b20b-6affb4f7915c
< X-OWA-Version: 15.1.2507.44
< X-Powered-By: ASP.NET
< Strict-Transport-Security: max-age=300; includeSubDomains
< X-FEServer: EXCH04


So indeed the server is not happy about it - now I hit okay on the
dialog without changing the credentials already there:


> POST /EWS/Exchange.asmx HTTP/1.1
> Soup-Debug-Timestamp: 1745319562
> Soup-Debug: ESoupSession 1 (0x775d08111050), SoupMessage 1 (0x775ccc006d80), GSocket 1 (0x775d08111ca0), restarted
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Type: text/xml; charset=utf-8
> User-Agent: Evolution/3.52.0
> Connection: Keep-Alive
> Accept-Encoding: gzip, deflate, br
> Accept-Language: de-de, de;q=0.9, en;q=0.8
> Host: <redacted>
> Content-Length: 842
> Authorization: <redacted>
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:GetFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/types"><messages:FolderShape><BaseShape>Default</BaseShape></messages:FolderShape><messages:FolderIds><DistinguishedFolderId Id="inbox"/></messages:FolderIds></messages:GetFolder></SOAP-ENV:Body></SOAP-ENV:Envelope>

< HTTP/1.1 200 OK
< Soup-Debug-Timestamp: 1745319562
< Soup-Debug: SoupMessage 1 (0x775ccc006d80)
< Cache-Control: private
< Transfer-Encoding: chunked
< Content-Type: text/xml; charset=utf-8
< Content-Encoding: gzip
< Vary: Accept-Encoding
< Server: Microsoft-IIS/10.0
< Set-Cookie: <redacted>
< Set-Cookie: <redacted>
< Date: Tue, 22 Apr 2025 10:59:22 GMT
< request-id: a28a2a5f-855e-4e68-a66d-26fbf785f839
< X-CalculatedBETarget: <redacted>
< X-DiagInfo: EXCH03
< X-BEServer: EXCH03
< X-AspNet-Version: 4.0.30319
< Persistent-Auth: true
< X-Powered-By: ASP.NET
< Strict-Transport-Security: max-age=300; includeSubDomains
< X-FEServer: EXCH04


Now it is happy.

So why is is always failing on the first try?

Anything I can try to fix that - the credentials are correct, e.g. E-
Mail or calendar backend don't complain, only the addressbook one seems
to have a problem (on the first try).


Torsten

PS: I already deleted the whole EWS account and did setup it again, the same thing is happening.



More information about the evolution-users mailing list