Called support and worked through the obvious, restart Mail, delete Sonic.net IMAP account and re-create, etc. Pinging imap.sonic.net gave the wrong IP address (67.142.something), even after clearing the DNS cache
dscacheutil -flushcache
After trying deleting preferences, rebooting Mac, router, modem, I tried on a hunch to take a look at the local hosts file (/private/etc/hosts) and found that Avast! anti-virus had hard-wired the address of imap.sonic.net to the prior address (67.142...). Once I changed that to 69.12.218.40, everything started working.
Question now is why does Avast! hard-wire the IP address on the Mac but apparently does not need to do this on Windows (where I'm also running Avast! AV). And, why did "dig" give the correct address, but ping did not?
dscacheutil -flushcache
After trying deleting preferences, rebooting Mac, router, modem, I tried on a hunch to take a look at the local hosts file (/private/etc/hosts) and found that Avast! anti-virus had hard-wired the address of imap.sonic.net to the prior address (67.142...). Once I changed that to 69.12.218.40, everything started working.
Question now is why does Avast! hard-wire the IP address on the Mac but apparently does not need to do this on Windows (where I'm also running Avast! AV). And, why did "dig" give the correct address, but ping did not?