Many thanks for the help.
The solution is this:
By default, IONOS blocks port 25 for outgoing connections on all new servers. You have to contact the support, then they will check and open the port for you. After setting up the server, at least I didn't see any evidence of it.
My emails are...