From owner-freebsd-questions Fri May 29 11:37:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA05479 for freebsd-questions-outgoing; Fri, 29 May 1998 11:37:06 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA05450 for ; Fri, 29 May 1998 11:36:56 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.7/8.8.7) id LAA15329; Fri, 29 May 1998 11:35:40 -0700 (PDT) (envelope-from dhw) Date: Fri, 29 May 1998 11:35:40 -0700 (PDT) From: David Wolfskill Message-Id: <199805291835.LAA15329@pau-amma.whistle.com> To: jonahkuo@mail.ttn.com.tw, questions@FreeBSD.ORG Subject: Re: mail based on IP address? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Sat, 30 May 1998 00:36:35 +0800 >From: Jonah Kuo > 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 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 mtu 1500 tun0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 lo0: flags=8049 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