I have a local server and a domain name that is set up with google apps.

My dns records send mail directly to google apps.

I need to create a middleman(on my own server), that keeps every sent or received google apps message.

Want to use the free gapps account (max 7 GB) and whenever I need to clean my mail and remove something it will still be backed up on my own server, in case I need to later look a message up.

Anyone knows of a solution?