rustdesk-server-pro icon indicating copy to clipboard operation
rustdesk-server-pro copied to clipboard

Failed to check STMP: deadline has elapsed (Microsoft 365 with 2FA)

Open ghost opened this issue 2 years ago • 9 comments

Trying to configure SMTP for my server and I get a "Failed to check STMP: deadline has elapsed" error message after a few seconds of clicking the "Check" button.

ghost avatar Aug 01 '23 14:08 ghost

sorry I had meant add comments to this existing issue with is opened https://github.com/rustdesk/rustdesk-server-pro/issues/26

dinger1986 avatar Aug 01 '23 14:08 dinger1986

Trying to configure SMTP for my server and I get a "Failed to check STMP: deadline has elapsed" error message after a few seconds of clicking the "Check" button.

Did you receive 2FA message?if so, i will add longer timeout.

rustdesk avatar Aug 10 '23 03:08 rustdesk

No 2FA message appeared.

ghost avatar Aug 10 '23 06:08 ghost

I'm going to try the prerelease at some point today and will see if it works, I think it will need an app password

dinger1986 avatar Aug 10 '23 07:08 dinger1986

Enable SMTP Auth use APP password if using MFA https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission#enable-smtp-auth-for-specific-mailboxes

dinger1986 avatar Aug 14 '23 14:08 dinger1986

SMTP basic auth is depreciated / about to be depreciated depending on M365 Tenant. OAuth 2.0 token-based authorisation is the updated method.

ie Not all M365 tenants support SMTP Auth.

https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online

ghost avatar Aug 14 '23 14:08 ghost

being able to connect to it using direct send https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#settings-for-direct-send would fix alot of peoples issues anyways as it should be on a static and the majority of people who set it up will be office 365 admins

dinger1986 avatar Aug 14 '23 14:08 dinger1986

Direct send requires you to use port 25, which a lot of hosting providers block.

williamharwell avatar Sep 14 '23 21:09 williamharwell

Most hosting providers will remove the block if requested

dinger1986 avatar Sep 14 '23 21:09 dinger1986

HELLO can some one help me to fix this problem:

2023-10-02 11:28:44 SMTP ERROR: Failed to connect to server: (0) SMTP Error: Could not connect to SMTP host. Failed to connect to server Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server

omarfarooq4u2c avatar Oct 02 '23 11:10 omarfarooq4u2c