Setting up a remote mail exchanger for a local domain

Problem:

You have Freesco setup to serve DNS for your LAN, and you have a domain name (eg: example.com). You want to setup a remote mail exchanger for your domain.

* Note: Most people won't need or want to do this; I had specific reasons for doing so.

Solution:

Login to your Freesco box as root (via telnet). Type:

cd /mnt/router/rc
edit rc_named
Find the line that says "cat /mnt/router/etc/named.hst >>/tmp/named", and on the line just before it, type the following:
echo "localdomain.com.<TAB>IN<TAB>MX<TAB>10<TAB>mail.remotedomain.com." >> /tmp/named

This appears wordwrapped here, but it must all be on one line when you type it.

Replace localdomain.com with your local domain (which points to your Freesco box), and mail.remotedomain.com with the domain name for the mail exchange you want to use. Make sure you add a period after both domain names.

Next, restart your nameserver:
/mnt/router/rc/rc_named restart
And you're done.