Move IMAP Mail Message: Authentication failed because the remote party has closed the transport stream.
The error "Authentication failed because the remote party has closed the transport stream" is related to the Security Protocol Type, it is most likely caused by the application's default security protocol type being set too low. Microsoft has started deprecating TLS 1.0 & TLS 1.1 from year 2020. Microsoft is planning to retire these basic authentication protocols in the near future as mentioned in Exchange Online deprecating Basic Authentication (Basic Auth) .
Once this happens, all of processes that are configured with these protocols with O365 in the Cloud will fail. Because of this, it is recommended to use the O356 activities, that are using the Graph API, which is a more secure way to do this compared with IMAP or SMTP.
Resolution:
- Update the package of uipath.mail.activities to latest version 1.10.5
- Validate & enable the TLS 1.2 & disabled TLS 1.0 and TLS 1.1 in the registry settings. Take help from local IT team
- Go into regedit, then go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\
- From there create a new Key for 'TLS 1.0' , 'TLS 1.1' and 'TLS 1.2'.
- Then, create a 'client' and 'server' key inside the protocol 'TLS 1.0' , 'TLS 1.1' and 'TLS 1.2'.
- Now, to disable the protocols TLS 1.0' , 'TLS 1.1' go to key 'Client' & 'Server' & create two DWORDs
- DisabledByDefault - Set value as Hexadecimal to 0.
- Enabled - Set value as Hexadecimal to 0.
- Now, to enable the protocol 'TLS 1.2' go to key 'Client' & 'Server' & create two DWORDs
- DisabledByDefault - Set value as Hexadecimal to 0.
- Enabled - Set value as Hexadecimal to 1.
- Restart the Robot machine and verify .