How do I setup a POP or IMAP on the iPhone?

From setting, choose Mail, Contacts and Calendar.

When asked what type, you can choose "Other".

Fill out the resulting form using your name, email address, password, etc. and tap next.

Choose either IMAP or POP

In the incoming mail server, you will need to enter the name of the mailserver that stores your mail. If you are trying to access your my.unt.edu mail, you will need to enter
 
Host Name: my.unt.edu
User Name: EUID
Password: ••••••••

For the Outgoing Mailserver SMTP, you have use (and we're assuming you're on the AT&T Network as it's currently the only service provider for iPhone):

  • Hostname: cwmx.com (mail.attbi.com may also work)
  • You might also use
    • Host Name: Mailhost
    • User Name: EUID
    • Password ••••••••

Go into the Advanced settings.

Incoming Settings (optional depending on your email server):

  • Use SSL = ON
  • Authentication = NTLM
  • Server Port 993
AT&T subscribers
If you are an AT&T subscriber and your ISP does not allow you to connect to their outgoing mail server to send email from outside their network, you can use the following AT&T outgoing mail server instead.

cwmx.com. No user name or password required

Advanced outgoing settings (when viewing the account settings, tap Advanced):
Use SSL OFF
Server Port 25
AT&T's outgoing mail server will only allow you to send mail while using an EDGE connection and will not work on a Wi-Fi connection. If you are connected to Wi-Fi and would like to send mail using AT&T's server, turn off Wi-Fi by choosing Settings > Wi-Fi. Information about using AT&T's mail server to send mail using EDGE can be located in AT&T's support document 72769.

For further reference see, ATT Online Support for iPhone.