Numerous tools work together to set you up with email.
Fetchmail can retrieve email from multiple POP/IMAP servers and deliver it to your (possibly local) MTA. Exim, postfix, qmail, and sendmail are MTAs--they will dispatch email to users. Procmail can sort incoming email into different mailboxes for a user.