Mail caching and proxy server