Apple Mail 9.2: How to specify port and SSL options for incoming and outgoing IMAP servers? When setting up a new IMAP account in Apple Mail 9.2, it gives me no option to specify the incoming and outgoing ports, not SSL options. See screenshot below.

The ability to do this would be most helpful as some mail accounts do vary from the norm in terms of default ports and SSL. When I do fill in all the fields asked for, I get the spinning progress animation for a long time before it gives up with an error (shown). I have no idea if it had tried several different ports (including the ones I want to use) or if it just kept retrying on the same (wrong settings). 

Other email clients give the option to set the ports. At the moment I don't have these available and need to use Apple Mail.
OK... this is irritating, but possible... you used to be able to force it to ignore at that point, then set it up manually from the Accounts pane.

The El Capitan version looks like you need to do that initial setup from System Prefs > Internet Accounts, rather than directly in Mail itself.

Start from the right pane - 'Add Other Account...' [scroll down to see it, for some reason the + - buttons are unclickable. If you do, they grey out]
then Mail Account.

You get a very similar dialog as in your question - fill it in as before.
It will error, as before - the major difference being that 'Sign In' changes to 'Next'

&amp; you're in... hit Next &amp; select Mail &amp;/or Notes &amp; Done.
Close the Prefs.

If Mail is open, quit &amp; relaunch.

Mail prefs/Accounts now has the bare bones of your new account, from which you can manually set up all the necessary ports, using the Advanced tab for incoming prefs &amp; the still rather annoying Outgoing Mail Server (SMTP) drop menu for outgoing.