Getting mail from an Imap server into a local mail server

Mac OS X 10.8 Mail Server setup.

Using getmail from macports to get the mail and instead of procmail, which I could not get working with Apples build of Dovecot, I used Dovecots own deliver LDA to get the mail in.

The Code from ~/.getmail/getmail.gmail

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = ******@*********
password = ********

[destination]
allow_root_commands = TRUE
unixfrom = True
type = MDA_external
path = /Applications/Server.app/Contents/ServerRoot/usr/libexec/dovecot/deliver
arguments = ("-d", "LocalUserChangeMe")

[options]
message_log = ~/.getmail/gmail.log
verbose = 2
#read_all = false
delete = false
delivered_to = false