Open Messaging.

Select Options > Settings > E-mail > Mailboxes. Select a mailbox, Connection settings, and from the following:

Some connection settings may be preset by your service provider. You may not be able to edit them.