Can you send email directly from docker server (not from inside container)? If it is linux: something around:
echo "content" | mail "test <test@mydomain.de>" -s "subject"
I think nextcloud already contacted the mail server successfully, then the mail server couldnāt find the email you inputted at settings > personal info, hence returning code 554.
Maybe try reading the log in the mail server?