How can I set the port of the real mail server to something other than 110?

Just use the username field in your email program and change it to

mail.server.com:3110:username

if the mail server uses the port 3110 for the connection.