The file ivan-gnus.el contains all the code I have written on top of gnus. Here is an example of how I setup my mail accounts. The last entry is a file that I use with getmail.
;; POP (setq mail-sources '((pop :server "kanis.fr" :port 995 :user "bob" :connection ssl :password "3l33t") (pop :server "pop.gmail.com" :port 995 :connection ssl :user "foo.bar@googlemail.com" :password "more3l33t") (file :path "~/tmp/ivan.mbox"))) (setq gnus-select-method '(nntp "news.gmane.org") gnus-secondary-select-methods '((nnml "")) user-mail-address "foo.bar@googlemail.com" smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 587)