I'm trying to find a guide to setup a mail relay in my vps for my home mail server.
What I'm trying to do is set it up so that my primary MX points to the VPS, with the home mail server as a secondary record.
All mail would delivered to the VPS initially, and then forwarded onto my home mail server.
So *@domain1.com, *@domain2.com, *@domain3.com, etc. are my domains, and I want all of the mail for these domains to be forwarded onto my home IP (on whatever port, it can be 25 if needed) whenever it can. I don't want to have to specify all the aliases/accounts for the domains manually if I can help it.
The important part is that I want the VPS to buffer the e-mail should the home mail server not be accessible (due to connectivity errors/server failure/etc.)
Is what I want possible?
Any ideas?
I'm a fairly experienced linux user, so I can follow a guide, just need to find a good one.