Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Tom on December 22, 2001, 02:51:06 PM

Title: Dyndns + e-mail
Post by: Tom on December 22, 2001, 02:51:06 PM
Hi,

I have running a e-smith 5 with dyndns.  I would like to give with the update also the backup-mx
Which script do i have to modify.

Thx
Tom
Title: Re: Dyndns + e-mail
Post by: Rob Hillis on December 23, 2001, 03:21:00 AM
Tom wrote:

> I have running a e-smith 5 with dyndns.  I would like to give
> with the update also the backup-mx
> Which script do i have to modify.

This is not especially easy, and is broken by subsequent upgrades (as the custom script is overwritten with the example script each time) nor is it backed up by a backup to desktop nor restored by a restore from tape (via the web interface)

There's probably a cleaner way to do this than the way I do it, but I haven't found it yet.

First, modify the /sbin/e-smith/dynamic-dns/custom script.  Where it says "insert your handler here", add the following (long) line...

/sbin/e-smith/dynamic-dns/ipcheck.py -d /etc/dyndns/ --syslog -b -m postoffice.babcom.net.au -i ppp0 $2 $3

If you have any other virtual domains, add separate (but similar) lines for them.   is simply a directory that you create to store the various config files... Make *sure* you create it, and do *not* use the same directory for multiple domains.

Next, download http://ipcheck.sourceforge.net/ipcheck.py and stick it in /sbin/e-smith/dynamic-dns.  Then run your above addition to the custom script, replacing $2 with your username and $3 with your password and adding --makedat as the *first* optional parameter.  This creates the data files necessary for keeping your domain updated *without* sending duplicate requests.

Lastly, from the console (Alt-F1 on most SME installations) select option 2 - Configure this server and when you get to the Dynamic DNS page, select option 6 - Custom.  Enter your Dyndns account name and password, and you *should* be up and running.

Make *sure* you keep a copy of your custom script and ipcheck.py somewhere so that you can restore it when they get overwritten/deleted by upgrades.

There is another client for dyndns which looks like it might be a bit easier, but as yet, I'm not familliar with it.  I'll have a play with it sometime in the next few days, and see if it's worth installing.