Sounds as a non-trivial exercise. You essentially want to connect to your Microsoft Exchange server from Linux. This might be either hard or next to impossible, especially if you want to use LDAP authentication. If I were you, I would write this utility in .NET and run it on Windows, as a service if need be. All this based on the information in your comment, of course.
Your particular version of Exchange might happen to expose some RESTful API or you can probably access some folders via IMAP, but once again, authentication might prove the biggest hurdle.
**Update**: it looks like someone has created a Python API for Exchange - see if it fits the bill: [https://pypi.python.org/pypi/exchangelib](https://pypi.python.org/pypi/exchangelib)
March 27, 2017, 6:08 a.m. - andre
Sounds as a non-trivial exercise. You essentially want to connect to your Microsoft Exchange server from Linux. This might be either hard or next to impossible, especially if you want to use LDAP authentication. If I were you, I would write this utility in .NET and run it on Windows, as a service if need be. All this based on the information in your comment, of course. Your particular version of Exchange might happen to expose some RESTful API or you can probably access some folders via IMAP, but once again, authentication might prove the biggest hurdle. **Update**: it looks like someone has created a Python API for Exchange - see if it fits the bill: [https://pypi.python.org/pypi/exchangelib](https://pypi.python.org/pypi/exchangelib)