Register as username@server
Your email will be the username.
So your JID will be [email protected]@mydmain.com
Since you have twice “@” you don’t want to make conflict.
Try to replace the “@” with a “!”.
For examle:
Your server: mydmain.com
Your email : [email protected]
The JID should be as: [email protected]
I hope it help you.