Hello,
You can change domain's name in the directadmin control panel. Let's imagine that you have domain1.com and domain2.com and you want to switch them. You can do it either by moving public_html directories between domains or changing domain names in the cp. If you change names then it will affect email accounts as well. If you don't change domain names then email account will stay untouched.