Script To Execute command via mail

Marcel Grandemange thavinci at
Fri Aug 29 13:08:03 UTC 2008

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 at

I really miss procmail!

-----Original Message-----
From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at] On Behalf Of Greg Larkin
Sent: Friday, August 29, 2008 3:03 PM
To: Marcel Grandemange
Cc: freebsd-questions at
Subject: Re: Script To Execute command via mail

Hash: SHA1

Marcel Grandemange wrote:
> I have an interesting situation.
> I have a windows based sms server, this machine works in the following
> 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
> 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:

Using procmail, you can create a script to process incoming emails and
process/reformat them as you see fit.

Best regards,
- --
Greg Larkin       - The Power To Serve - Ready. Set. Code.
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


freebsd-questions at mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

__________ NOD32 3396 (20080828) Information __________

This message was checked by NOD32 antivirus system.

More information about the freebsd-questions mailing list