Ok, this is going to sound crazy....But, considering all the email problems popping up from El Capitan, maybe not
But, for at least 3 years all my POP settings have been unchanged - port 995, use SSL. This was due to Network Solutions have some server problems years ago and their tech support suggesting that setting. I just never changed it back
Anyway, their mail setup webpage says:
But, Mail will not save the changes appropriately. I enter port 587, uncheck SSL, and "password" authentification, and as soon as i save it, it would change to port 110 APOP authentification. Then, smtp does not work. Back and forth it has gone for hours. Closing Mail, re-opening, rebooting, anything in the hope that settings stick.
Suddenly, 5 minutes ago, I open Preferences and it is back to port 995, SSL checked, Authenticated POP (APOP), the original settings and.......It works!
I'm guessing it reverted back to those settings because I checked "Automatically detect and maintain settings". i had unchecked that earlier today trying to get settings to stick.
Bottom line - the El Capitan update screws with Account Settings - check them. If it won't accept changes, uncheck "Automatically detect and maintain settings" under Accounts>Advanced. See if it eventually works. Then, try re-checking that
Unfortunately, I cannot say for fact what got my mail working again. I've changes way to many things in frustration to know