I finally succeed with this configuration:
`from exchangelib import DELEGATE, Account, Credentials, Configuration
creds = Credentials(
username="domain_name\username",
password="password"
)
config = Configuration(server='mail.solutec.fr', credentials=creds)
account = Account(
primary_smtp_address="my email address",
autodiscover=False,
config=config,
access_type=DELEGATE
)
For those who will have the same problem, you can find your domain_name by right-clicking on "Computer" and Properties.
Username and Password are the one you use to connect to your company mailbox for example. For the server in Configuration, for me this one works: "mail.solutec.fr", where solutec is the name of my company and fr for France.
Looks like this autodiscover guy really doesn't like me ^^
Thanks for your help anyway and have a good day !