Exim - Setting Up A Store And Forward

Setting up a store and forward on a box running exim is fairly simple. You simply need to add something like the following to your routers section:

domains = domain.tld
driver = manualroute
transport = remote_smtp
route_list = domain.tld remote.domain.tld byname


 You need to leave your mx records pointed to the box you are setting the router up on. Obviously, the part labeled remote.domain.tld is the location that the mail should be forwarded to.  You typically want to add this to the top section of your router. I imagine that you could configure this to scan your mail with things like spamassassin and clamav too by changing the location of the router, but I have not tested this. If anyone wants to test this and update this article, please do.