Koozali.org: home of the SME Server

SME Calls Home?

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
SME Calls Home?
« 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 !
"If you don't know what you want, you end up with a lot you don't."

WillKemp

Re: SME Calls Home?
« Reply #1 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?

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
SME Calls Home?
« Reply #2 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.
"If you don't know what you want, you end up with a lot you don't."

Offline ldkeen

  • *
  • 403
  • +0/-0
SME Calls Home?
« Reply #3 on: May 28, 2006, 11:02:23 AM »

Offline p-jones

  • *
  • 594
  • +0/-0
SME Calls Home?
« Reply #4 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.
...

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
SME Calls Home?
« Reply #5 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.
"If you don't know what you want, you end up with a lot you don't."