Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: gbentley on May 26, 2006, 09:22:43 AM

Title: SME Calls Home?
Post by: gbentley on May 26, 2006, 09:22:43 AM
Is it possible (with some cron job maybe?) to get SME to figure out its
current WAN IP on a dynamic ADSL account and mail that IP to the admin
account mail forward address ?

Could this be triggered by mailing the admin with a certain subject line ?

Can anyone help me achieve this function / provide sample code etc

Thanks !
Title: Re: SME Calls Home?
Post by: WillKemp on May 26, 2006, 11:42:10 AM
Quote from: "gbentley"
Is it possible (with some cron job maybe?) to get SME to figure out its current WAN IP on a dynamic ADSL account and mail that IP to the admin account mail forward address ?

Why don't you just use dyndns.org and get yourself a domain name with them (free) and use SME's automatic dynamic DNS update system?
Title: SME Calls Home?
Post by: gbentley on May 27, 2006, 08:31:05 AM
Good idea however I think the function of autoresponses for admin is also a good one too and would be a neat feature.

For example sending an email to admin@smeserver.com with the subject line 'config' would reply with all the settings / details to the admin account forward address.
Title: SME Calls Home?
Post by: ldkeen on May 28, 2006, 11:02:23 AM
This might help out:
http://forums.contribs.org/index.php?topic=7619.msg28032#msg28032
Regards Lloyd
Title: SME Calls Home?
Post by: p-jones on May 28, 2006, 02:11:16 PM
I thought the DynDNS updater in SME sent an email to the administrator from the ddclient when the ip addres changed.
Title: SME Calls Home?
Post by: gbentley on May 28, 2006, 03:06:02 PM
I hadnt actually tried using DynDNS so didnt realise this function was already available - there you go, SME has it all :)

Wondered why didnt get too many responses LOL !

Edit: Never thought about this before but I just added a user account for myself with my forwarding address. The WAN IP is in the returned mail header.

Simple really.