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
-
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!
-
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...
-
Thanx Jean-Philippe worked a treat!
sm@rt
-
Pleased to hear that !