I figured out how to do it using this as a guide:
However, it is not entirely designed for Ubuntu since it is originally written for Red Hat Linux. The fetchmail portion did work though. I could not get the rest of it to work though. But, that is for another time. Right now fetchmail is popping my gmail account securely and dropping my mail into Maildirs allowing my other computers on my network pull it down and sync it up via IMAP.