- Open Settings, tap Apps, then Mail, then Mail Accounts. (On older versions of iOS: Settings, then Mail, then Accounts.)
- Tap Add Account, then Other, then Add Mail Account.
- Enter your name, your full email address, your mailbox password, and a description. Tap Next.
- Choose IMAP.
- Under Incoming Mail Server, enter host name mail.yourdomain.com, your full email address as the user name, and your password.
- Under Outgoing Mail Server, enter the same host name, user name and password.
- Tap Next, then Save.
The iPhone normally picks the right ports on its own. If sending fails, check that the outgoing server uses port 465 with SSL turned on. Full settings are in Email settings for any app.