Mail DSN don't let me connect to my email server

I had the same Issue with Mautic 5. Found out that in the password the special char ‘<’ was not properly saved. I removed it. Then it worked.