my experience is that the email ports are configured in many different ways depending on the provider.
For example, at google:
587 is the Outgoing server (SMTP) port for IMAP. It uses a TLS
465 is the Outgoing server (SMTP) port for pop. It uses an SSL