Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: sm@rt on March 12, 2002, 01:48:46 PM

Title: Help with ip-up - PLEASE!
Post by: sm@rt on March 12, 2002, 01:48:46 PM
I want to be able to send three or four emails informing the recipients that my external ip address has changed.

I understand from a friend that i can do this by editing ip-up or ip-up.local and adding the mail command:-

mail -s "IP Changed" smartrobinson@hotmail.com $(/sbin/e-smith/config get ExternalIP)

I have tried several times to get this to work, it is now urgent!

I do not fully understand the templates and templates-custom and how to use them. If someone can PLEASE help it will also help me to understand future customisations.

Thanks!
sm@rt!
Title: Re: Help with ip-up - PLEASE!
Post by: Jean-Philippe on March 12, 2002, 05:47:07 PM
This is what I did :
mkdir -p /etc/e-smith/templates-custom/etc/ppp/ip-up.local
vi /etc/e-smith/templates-custom/etc/ppp/ip-up.local/ip-up.local

Then I typed :
/sbin/ifconfig ppp0|mutt -s IP smartrobinson@hotmail.com

And then :
/sbin/e-smith/expand-template /etc/ppp/ip-up.local

Hope this'll help...
Title: Re: Help with ip-up - PLEASE!
Post by: sm@rt on March 12, 2002, 07:53:39 PM
Thanx Jean-Philippe worked a treat!

sm@rt
Title: Re: Help with ip-up - PLEASE!
Post by: Jean-Philippe on March 12, 2002, 08:46:32 PM
Pleased to hear that !