If you think it may be a problem with incorrect port, it is possible to change the configuration of the port for both mail servers incoming and outgoing, but not in the same place:
Sorry to hear that you encounter these problems with your e-mail account in El Capitan. Thank you for using communities Support from Apple.