I have one VPS server with CWP on.
I have created 2 user A & B
Each have there own domain name
dom1.com for user A & dom2.com for user B
I have create each user there own account.
I try to get if you type in dom2.com it must go to dom1.com
I try to create a CNAME record for dom2.com with Content dom1.com but it does not seems to work.
You want domain1 and domain2 to have the same content? If so, you don't need separate user accounts, you just make domain2 and Add-on domain to user A's account, so it contains both domain1 and domain2.
I want so that user B can setup his own email without to be on user A accounts.