From owner-freebsd-questions Wed Feb 27 4: 8: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id C322337B402 for ; Wed, 27 Feb 2002 04:07:46 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g1RC6F739828; Wed, 27 Feb 2002 14:06:15 +0200 (EET) (envelope-from ru) Date: Wed, 27 Feb 2002 14:06:15 +0200 From: Ruslan Ermilov To: "Roger 'Rocky' Vetterberg" Cc: Lucas Nussbaum , freebsd-questions@FreeBSD.ORG Subject: Re: Email -> SMS Gateway on FreeBSD Message-ID: <20020227120614.GD30220@sunbay.com> References: <06ba01c1b45a$2c1ed900$1501a8c0@win2kws1> <11752.203.11.225.5.1013988132.squirrel@www.futureuse.net> <20020218002711.GA23631@oxygene.in.schickler.net> <3C705249.6020002@rambo.simx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C705249.6020002@rambo.simx.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 18, 2002 at 02:00:57AM +0100, Roger 'Rocky' Vetterberg wrote: > Lucas Nussbaum wrote: > > >On Mon, Feb 18, 2002 at 10:22:12AM +1100, fbsdlist@futureuse.net wrote: > > > >>>I'm looking to set up an Email -> SMS gateway on my FreeBSD machine. > >>>Its primary use will be to notify a list of mobile phones via SMS if a > >>>server goes down... > >>> > >>[...] > >> > >>>I'm really just after anyone with experience getting this to work. > >>>Suggestions for programs, hardware needed - and i guess most > >>>importantly.. is it possible. > >>> > >>Hi Brad, > >> > >>Good news - it is possible and shouldn't be very hard to do either. You've > >>got these main options ... > >> > >>1. Use a 3rd party service provider, they'll have software or an email > >>gateway you can use. We use RedRock Communications at work. > >> > >>2. Write your own gateway. > >> > > > >3. use the email address provided by your phone operator (eg: > >number@operator), and redirect the mail to it. Often it's only a mail > >notify service, so only subject is sent to the phone. I've a perl script > >which put all the content of a mail in a subject then send it. If > >someone is interested, mail me privately. > > > >Btw, someone talked about software available for that in the ports. > >Which ports exactly ? > > > >lucas > > > /usr/ports/misc/smssend can use webbased services such as > mtnsms.com and many others. > It features some kind of script language that allows you to > make scripts that enables it to use any webbased sms > service, and comes preloaded with scripts for a lot of services. > I havent used it more then in a few tests, but it seems to work. > Except it has a very badly written email2smssend Perl wrapper that can't handle double quotes. I use the following .procmailrc block to deliver to my mobile: : # SMS : SENDSMS="email2smssend -i -ms 120 -mm 8 -- umc" : MYPHONE=xxxxxxx : :0 c : * ^TOru@ : * !^FROM_MAILER : | grep -v "^ *[\>:]" | sed 's/"/\\"/g' | ${SENDSMS} ${MYPHONE} ^^^^^^^^^^^^^^ Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message