David Hustace wrote:
>
> On Nov 4, 2009, at 2:15 AM, Les Mikesell wrote:
>
>> If you use sendmail or another mailer
>> that does local delivery using procmail you could just create a user
>> to receive
>> the mail and a .procmailrc file with the command to dispatch -
>> probably a shell
>> or perl script to parse it and execute send-event.pl with appropriate
>> options.
>
> When I was a young lad, back in the day, (insert appropriate old man
> saying here), I used to use command mail aliases in the sendmail alias
> file. So, an email to:
[hidden email]
> <mailto:
[hidden email]> would have an alias:
>
>
> opennms: "| /opt/opennms/bin/my-send-event.sh"
>
>
> Something like that where my-send-event.sh would parse the piped email
> text message properly into send-event.pl
These days, most distributions with sendmail would, by default, strip the path
from your command and try to execute it from /etc/smrsh so you need a symlink
there - and it runs under a somewhat restricted shell. It would still work, but
a dummy user with procmail gives you a nicer place to park the associated
scripts and keep log files.
--
Les Mikesell
[hidden email]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQopennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss