From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 20:30:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 080631065670 for ; Tue, 2 Sep 2008 20:30:34 +0000 (UTC) (envelope-from chris@smartt.com) Received: from nov.smartt.com (nov.smartt.com [69.31.173.253]) by mx1.freebsd.org (Postfix) with ESMTP id D65CD8FC1D for ; Tue, 2 Sep 2008 20:30:33 +0000 (UTC) (envelope-from chris@smartt.com) Received: from [69.31.174.220] ([69.31.174.220]) (authenticated bits=0) by nov.smartt.com (8.13.8/8.13.5) with ESMTP id m82KUVOo025849; Tue, 2 Sep 2008 13:30:31 -0700 Message-ID: <48BDA268.5070509@smartt.com> Date: Tue, 02 Sep 2008 13:30:32 -0700 From: Chris St Denis User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Marcel Grandemange References: <029801c909d6$67d76330$37862990$@za.net> <48B7F387.4060602@FreeBSD.org> <029d01c909d8$272dd1f0$758975d0$@za.net> In-Reply-To: <029d01c909d8$272dd1f0$758975d0$@za.net> X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, HTML_40_50,HTML_MESSAGE autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on nov.smartt.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: glarkin@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Script To Execute command via mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 20:30:34 -0000 Marcel Grandemange wrote: > Yes the Server I want to do this on Is a FreeBSD 7.0 box, however cannot use > procmail as all mboxes are virtual. > Ie not real accounts all exist only on mysql, and since I changed from a > normall stock setup to using mysql procmail no longer will work. > All boxes are in form of user@domain.com > > > I really miss procmail! > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Greg Larkin > Sent: Friday, August 29, 2008 3:03 PM > To: Marcel Grandemange > Cc: freebsd-questions@freebsd.org > Subject: Re: Script To Execute command via mail > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Marcel Grandemange wrote: > >> I have an interesting situation. >> >> I have a windows based sms server, this machine works in the following >> > way. > >> It watches a shared directory for txt files that must be formatted in >> certain way and periodically sends them off to mobile. >> >> What I want to do is create a SMTP to SMS gateway. >> >> Easy in theory! >> >> Rite a script to map shared drive, ensure it's connected and write the txt >> files in dir. >> >> However the second part I have no idea, somehow I need to watch the mbox >> file of say a e-mail account called "test" >> >> And IF a mail arrives parse it look for a security key if exists convert >> > to > >> txt file and copy to shared dir. >> >> > > Hi Marcel, > > Do you have a FreeBSD machine in the mix somewhere? If so, this sounds > like a job for procmail: http://en.wikipedia.org/wiki/Procmail > > Using procmail, you can create a script to process incoming emails and > process/reformat them as you see fit. > > Best regards, > Greg > - -- > Greg Larkin > > http://www.FreeBSD.org/ - The Power To Serve > http://www.sourcehosting.net/ - Ready. Set. Code. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIt/OH0sRouByUApARAntMAJ43+cuEDrdEIZle4TTxa3orO+u05QCdHsOq > c1yjtkE0i7CN4dM04WgcfrM= > =0pjX > -----END PGP SIGNATURE----- > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > __________ NOD32 3396 (20080828) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Courier maildrop should do what you need. it's in ports/mail/maildrop. It can have a mysql backend if you compile it WITH_AUTHLIB=yes -- Chris St Denis Programmer SmarttNet (www.smartt.com) Ph: 604-473-9700 Ext. 200 ------------------------------------------- "Smart Internet Solutions For Businesses"