From owner-freebsd-isp@FreeBSD.ORG Thu Jun 1 19:33:27 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAAF616A9AD for ; Thu, 1 Jun 2006 19:33:26 +0000 (UTC) (envelope-from wash@wananchi.com) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 788B443D48 for ; Thu, 1 Jun 2006 19:33:25 +0000 (GMT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 4.62 #0 (FreeBSD 4.11-STABLE)) id 1Flsv2-0003TY-De by authid ; Thu, 01 Jun 2006 22:33:20 +0300 Date: Thu, 1 Jun 2006 22:33:20 +0300 From: Odhiambo Washington To: Boris Samorodov Message-ID: <20060601193320.GK51255@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , Boris Samorodov , Odhiambo Washington , freebsd-isp@freebsd.org References: <20060601152435.GC51255@ns2.wananchi.com> <03202731@ho.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03202731@ho.ipt.ru> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine alone!. X-Mailer: Mutt 1.5.11 (2005-09-15) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. User-Agent: Mutt/1.5.11 Sender: Odhiambo Washington Cc: freebsd-isp@freebsd.org Subject: Re: Mass SMS X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 19:33:28 -0000 * On 01/06/06 23:13 +0400, Boris Samorodov wrote: | On Thu, 1 Jun 2006 18:24:35 +0300 Odhiambo Washington wrote: | | > I have a few hundred VIP clients (yes, some are more VIP than others) | > who I'd like to notify, via SMS, whenever we have any network problem | > and also immediately such a | > problem is resolved. | | > What I'm looking for is some software that I can use to do this, | > within FreeBSD. I hope one of the experts in this area has done | > one so I don't have to wait for the invention. | > `make search key=sms` from within the ports did give some apps, | > but I did not see one that is capable of looking at a database | > of contact numbers and sending that one sms to all of them. | > Of course I do expect a reply/delivery report after sending the sms. | | > Any good pointers will be appreciated. | | We use: | /usr/ports/net-mgmt/nagios | /usr/ports/mail/exim | /usr/ports/comms/gammu | | Nagios is used to lookup on host and services. When a problem occures, | it sends a letter to address @domain. Exim has router: | sms_posting: | transport = mail2sms | driver = manualroute | local_part_suffix = -sms | route_list = * | | ...and transport: | mail2sms: | driver = pipe | user = mailnull | command = /usr/local/bin/mail2sms.py | | The last script is at the attachement. It uses a Subject field as a | text to send via sms and write an outgoing message to | /var/spool/sms/outbox. Gammu smsd daemon is scanning this directory | for any existing files and send them via GSM phone. This phone is | connected to our server via COM or USB port (Prolific Technology chip | USB-to-COM cable for the latter). | | /var/spool/sms/db/phones is the file with lines | \tab: | +7495NNNNNNN bsam-sms@domain.ru | | We have been using this technology for a year and don't have any | claims so far. Hi Boris, This is great!!! After looking at the Nagios contacts, I believe this solution is almost akin to K.I.S.S. However, e-mail being e-mail, I thought about spammers, but that looks like something I can take care of within Exim using some rules to ensure that only valid senders can get mail into the SMS... I have two concerns: (1). Your router's route_list line seems incomplete to me, no? (2). Assuming SMSes are charged, how do you monitor the charges? (phone must have credit in order to send SMS, no?) (3). Suppose someone sent a reply to the system, where does it go? (4). You mention that mail2sms.py "uses a Subject field as a text to send via sms and write an outgoing message to /var/spool/sms/outbox...." It is still not yet clear to me where the "Subject field" comes from. Thank you so much for making public this solution! Best regards, Odhiambo Washington Systems Admin, Wananchi Online Ltd. Are you hosting your domain name with the leaders??: See http://webhosting.info/webhosts/tophosts/Country/KE DISCLAIMER: See http://www.wananchi.com/bms/terms.php ----------------------------------+----------------------------------------- Odhiambo WASHINGTON . WANANCHI ONLINE LTD (Nairobi, KE) http://www.wananchi.com/email/ . 1ere Etage, Laptrust Plaza, Loita St., Mobile: (+254) 722 743 223 . # 10286, 00100 NAIROBI ----------------------------------+----------------------------------------- Always remember that you are unique, just like everybody else.