Problem with mail auth on transferred account

I transferred a cpanel backup from another server and restored it on a new server.

After repointing the DNS, everything came up fine except mail.

I cannot login into the new server for imap or webmail.

I have checked and reset passwords to no avail. I created a new test mail account and that doesn't work either.

If I go to domainname.com/webmail I can log into cpanel which show 3 choices for webmail, Neomail, Horde, or SquirrelMail. Choosing any of them has the same problem of asking for reauthentication. I use the same username/password and auth fails.