Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 1998 11:35:40 -0700 (PDT)
From:      David Wolfskill <dhw@whistle.com>
To:        jonahkuo@mail.ttn.com.tw, questions@FreeBSD.ORG
Subject:   Re: mail based on IP address?
Message-ID:  <199805291835.LAA15329@pau-amma.whistle.com>

next in thread | raw e-mail | index | archive | help
>Date: Sat, 30 May 1998 00:36:35 +0800
>From: Jonah Kuo <jonahkuo@mail.ttn.com.tw>

>    Could someone please tell me how can I send mail based
>on IP address, like 'somebody@123.123.123.123'.

The IP address needs to be enclosed in square brackets.

It's likely(!) that whatever shell you use will want to treat those
specially, so in such a case, you'll need to "escape" that
interpretation, thus:

pau-amma[2]% mail -v dhw@\[207.76.205.64\]
Subject: testing....
?
.
Cc: 
dhw@[207.76.205.64]... Connecting to local...
dhw@[207.76.205.64]... Sent
pau-amma[3]% ifconfig -a
de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 207.76.205.64 netmask 0xffffff00 broadcast 207.76.205.255
        ether 00:e0:29:00:ce:e4 
        media: autoselect (100baseTX) status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
pau-amma[4]% 

david
-- 
David Wolfskill		UNIX System Administrator
dhw@whistle.com		voice: (650) 577-7158	pager: (650) 371-4621

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805291835.LAA15329>