exchangelib - All steps in the autodiscover protocol failed

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

exchangelib - All steps in the autodiscover protocol failed

Message par Clippy »

exchangelib - All steps in the autodiscover protocol failed
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: exchangelib - All steps in the autodiscover protocol failed

Message par Clippy »

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 !
Répondre

Revenir à « Excel & VBA »