[Uaflug] Need 'mail' help.

Erik Gregg erik at alaska.edu
Thu Apr 12 08:25:27 AKDT 2007


I recommend the dyndns option.  I have a little apt installable daemon on my
laptop that refreshes the entry rura-penthe.ath.cx with my current IP.  That
way, if it's ever stolen, I have a name to watch the trail of if the machine
goes online at any point.

hank at rura-penthe ~ $ host rura-penthe.ath.cx
rura-penthe.ath.cx has address 66.223.247.194

It's very nice.  Get the package ddclient.  Then, set up your
/etc/ddclient.conf like this:

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

pid=/var/run/ddclient.pid
protocol=dyndns2
use=web
server=members.dyndns.org
login=<your login>
password='<your Password>'
<your dynamic name>

Where my dynamic name is rura-penthe.ath.cx.  Then, just run ddclient as
root.  It also has an initscript in /etc/init.d/ddclient.  You can use this
to schedule your updates.  There's a ton more information here:

http://ddclient.sourceforge.net/?page=1

Good luck.

- Hank


On 4/12/07, Dayne Broderson <dayne at alaska.edu> wrote:
>
>
>
> You probably need to configure the box to had the mail to your mom's ISP.
> They should have an SMTP server, and that is what you'd have to configure
> the box to use for mail delivery.
>
> You could do the scp using ssh-keys so it doesn't prompt for a password..
> but I'd avoid that.. since that would be passwordless keys to your account
> sitting on a machine you don't fully control.
>
> A better option would be to write a tiny little CGI/php app on Mod0 that
> allowed a machine to submit its 'name' and 'ip'.  Then have it store that
> for you to go and check to see what IP that machine's name is.
>
> Another option is to get a dynamic DNS provider and setup their script..
> then just use that domain name.  Might have to tweak the script to pull
> the IP from your script instead of ifconfig.
>
> # dayne at alaska.edu # 907.474.6182 #
>
> On Thu, 12 Apr 2007, Paul Swanson wrote:
>
> > I'm running Ubuntu Feisty, and I can't send myself an email using
> > 'mail' (I installed mailutils).
> >
> > mail -s "Subject" email at address.com
> > Body text blah
> > [ctrl+d]
> >
> > Correct? Well, it's not working.
> >
> > In a more generic sense, I just need to get a tiny bit of information
> > off of a remote computer every now and then. If there's some other way
> > to get it to me, that'd work as well.
> >
> > What I'm ultimately trying to do is get the IP address of my mom's
> > computer. It changes every few days, and I need to SSH into it. What
> > I'm thinking right now is - Run a cron job that twice a day runs this
> > script:
> >
> > rm index.html
> > wget whatismyip.com
> > egrep -m 1 -o '([0-9]{1,3}\.){3}[0-9]{1,3}' index.html > temp.txt
> > if [ "`cat momsip.txt`" != "`cat temp.txt`" ]; then
> >       mv temp.txt momsip.txt
> >       mail -s "Mom's IP address" -t my at email.com
> >       # ???
> > fi
> >
> > I suppose I could also have it scp the file into my modzer0 account,
> > but this seems more elegant. Also, would it need the password every
> > time?
> >
> > Or is there a much more elegant solution?
> >
> > Thanks,
> > Paul
> > _______________________________________________
> > uaflug mailing list
> > uaflug at linux0.cs.uaf.edu
> > http://linux0.cs.uaf.edu/mailman/listinfo/uaflug
> >
> _______________________________________________
> uaflug mailing list
> uaflug at linux0.cs.uaf.edu
> http://linux0.cs.uaf.edu/mailman/listinfo/uaflug
>



-- 
ruby -ropen-uri -e "eval(open('http://sig.ralree.info').read.gsub(/\s/,''))"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux0.cs.uaf.edu/pipermail/uaflug/attachments/20070412/167c8369/attachment.htm


More information about the uaflug mailing list