-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing shared mailbox - The SMTP address has no mailbox associated with it. #641
Comments
Is it possible that the shared account only has public folders? |
Nope, it has many folders that are all not public. I was able to connect to that same mailbox before and access all of its subfolders. It stopped working after this weekend. I was using the latest release, I have now updated to the latest github version, but still the same issue. |
Does it still work with the same version that worked for you previously? If so, please compare the XML requests to see where we differ. |
No that version also does not work any longer, I updated after I encountered the problem. I am aware this might mean that it's not an issue with the library, but nothing about the Exchange configuration has changed.. |
It could be related to #636. You may be hitting different backend nodes in your Exchange cluster, giving you different results depending on which node you hit. |
Looks possible. After skimming over it quickly, it seems that it's mostly related to public folders though? It seems strange to me that I can even access the Maybe it helps, this is the XML request and response sent by <?xml version=\'1.0\' encoding=\'utf-8\'?>
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<s:Header>
<t:RequestServerVersion Version="Exchange2010_SP2"/>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="W. Europe Standard Time"/>
</t:TimeZoneContext>
</s:Header>
<s:Body>
<m:FindFolder Traversal="Shallow">
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="folder:ChildFolderCount"/>
<t:FieldURI FieldURI="folder:EffectiveRights"/>
<t:FieldURI FieldURI="folder:FolderClass"/>
<t:FieldURI FieldURI="folder:DisplayName"/>
<t:FieldURI FieldURI="folder:ParentFolderId"/>
<t:FieldURI FieldURI="folder:TotalCount"/>
<t:FieldURI FieldURI="folder:UnreadCount"/>
</t:AdditionalProperties>
</m:FolderShape>
<m:IndexedPageFolderView MaxEntriesReturned="100" Offset="0" BasePoint="Beginning"/>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="publicfoldersroot"/>
</m:ParentFolderIds>
</m:FindFolder>
</s:Body>
</s:Envelope>
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14" MinorVersion="3" MajorBuildNumber="442" MinorBuildNumber="0" Version="Exchange2010_SP2"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindFolderResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="0" TotalItemsInView="0" IncludesLastItemInRange="true">
<t:Folders/>
</m:RootFolder>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</m:FindFolderResponse>
</s:Body>
</s:Envelope> |
OK, so the problem was indeed on our side, the shared mailbox was moved to a new "cloud" environment which changed the endpoint I have to use for the configuration. Thanks for the help troubleshooting. |
Can you share the new endpoint? I'd like to try to see if this is the same issue I'm having but not sure what endpoint |
You may be able to use autodiscover to fetch the correct endpoint for your account. |
@axk7812 this is my configuration since we moved to Office365: ews_config = Configuration(
server="outlook.office365.com",
credentials=credentials,
version=Version(build=Build(14, 3, 442, 0)),
) |
As a side note, the version number in that config is probably wrong (O365 is running some version of Exchange 2016), but we can recover from a wrong version number. |
I'm having trouble accessing a shared mailbox again. I am getting the error
exchangelib.errors.ErrorNonExistentMailbox: The SMTP address has no mailbox associated with it
whenever I try to access any property of the shared mailbox account, apart frompublic_folders_root
. I am still able to connect to my own email address without problems.Log for
account.root.tree()
:Request data:
Response data:
EDIT:
Using my personal account, I can confirm that the shared mailbox is properly resolved:
The text was updated successfully, but these errors were encountered: