Recently, we attempted to connect mail accounts using the latest version of eM Client (v10.4), but the connection is failing
If the auto discover is not working for Smartermail with EWS see the following post by @r00tsh3ll which might also help you.