How do I setup SurgeMail to be a backup server for a domain?
Let us use “mydomain.xx” as the example domain. You want to setup SurgeMail so that if the primary server that is hosting mydomain.xx goes down SurgeMail will accept mail for that domain and hold it until the primary server goes back online and then SurgeMail will deliver the mail to that server. You need to make sure that you have a lower priority MX record for the domain pointing at your server to start with so that mail will be delivered to SurgeMail when the primary server is down. Then you just need to configure SurgeMail which is very easy. You only need one setting. g_gateway domain=”mydomain.xx” to=”ip of primary server” The important thing is that you must NOT setup the domain on SurgeMail as otherwise SurgeMail will think that the domain is hosted locally and try and deliver the messages locally and they will of course fail as the users won’t exist. You can control the time period SurgeMail will hold these messages for the primary server before bouncing them with the g_retry_