This happened to me too and eventually I realised I hadn't configured UFirewall to allow pop/smpt I didn't even know it was active
I felt really stupid