Ralph, thank you so much. That worked and it actually parsed the incoming email to the script and it displayed the information to the system.<div><br></div><div>I want to thank everyone for being so patient with me and my limited skill set in the Linux world.<br>

<br><div class="gmail_quote">On Tue, Oct 2, 2012 at 7:27 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p>Trying changing $HOME to the actual location of the xymon home.</p><span class="HOEnZb"><font color="#888888">
<p>Ralph Mitchell<br>
</p></font></span><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Oct 2, 2012 7:25 PM, "Ray Reuter" <<a href="mailto:ray.reuter@gmail.com" target="_blank">ray.reuter@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I have the line now looking like this.<div><br></div><div>xymon:          "| $HOME/server/bin/xymon-mailack --env=$HOME/server/etc/xymonserver.cfg"</div><div><br></div><div>Mail does not seem to be processed by this either. The mail never makes it to the Mailbox/new directory though so now I am not sure where the email is going;<br>




<br><div class="gmail_quote">On Tue, Oct 2, 2012 at 4:15 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




I've never used xymon-mailack, but I have used pipe-via-alias working for email delivery of status reports.<div><br></div><div>However, I just took a look at the man page for xymon-mailack, and it seems likely that that alias can use the exact same pipeline as given for both procmail and qmail:</div>





<div><br></div><div>   | /home/xymon/server/bin/xymon-mailack .......</div><span><font color="#888888"><div><br></div><div>Ralph Mitchell</div></font></span><div><div><div><br><br>

<div class="gmail_quote">On Tue, Oct 2, 2012 at 3:44 PM, Ray Reuter <span dir="ltr"><<a href="mailto:ray.reuter@gmail.com" target="_blank">ray.reuter@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So is this how you made the mailack work for xymon?<div><br></div><div>I am not sure what my alias should be pointing to?Not sure what your script does.</div>





<div><br></div><div>Again thank you <div><div><br><br><div class="gmail_quote">

On Tue, Oct 2, 2012 at 3:01 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







Sorry, didn't type that bit...  Anywhere in /etc/aliases will do, then run  "newaliases" to recreate the db files that the mailer actually reads from.<span><font color="#888888"><div><br></div>

<div>Ralph</div></font></span><div><div><div><br></div><div><br><div class="gmail_quote">
On Tue, Oct 2, 2012 at 2:59 PM, Ray Reuter <span dir="ltr"><<a href="mailto:ray.reuter@gmail.com" target="_blank">ray.reuter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








Thank you Ralph, where would the line below go?<div><div><br><br><div class="gmail_quote">On Tue, Oct 2, 2012 at 2:56 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br>










<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't know about procmail as such, but I have had some success using email aliases.  You can add a line like this:<div>










<br></div><div>xymon: "| /usr/local/bin/email_processor.sh"</div><div><br></div><div>then run "newaliases", then any email arriving for the xymon user gets piped through the script.  Everything up to the first blank line is a header.  Everything after that blank line is the body of the email.</div>











<div><br></div><div>I know procmail does something similar, I just don't know what, or how...</div><div><br></div><div>Ralph Mitchell</div><div><br><br><div class="gmail_quote"><div><div>On Tue, Oct 2, 2012 at 2:49 PM, Ray Reuter <span dir="ltr"><<a href="mailto:ray.reuter@gmail.com" target="_blank">ray.reuter@gmail.com</a>></span> wrote:<br>











</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>The messages are making it to var/mail/xymon without an issue now. <div><br></div><div>

But the .procmailrc file and rocmail.log file do not seem to either get engaged in to the process or something else is missing.<div>
<div><br><br>

<div class="gmail_quote">On Mon, Oct 1, 2012 at 11:21 PM, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">













<div>On 29 September 2012 02:51, Ray Reuter <span dir="ltr"><<a href="mailto:ray.reuter@gmail.com" target="_blank">ray.reuter@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I have created the .procmailrc file it looks like this. The file is in /home/xymon 755 permissions and owned by xymon:xymon I tried the ownership as root as well.<div><br></div><div><pre>DEFAULT=$HOME/Mailbox
LOGFILE=$HOME/procmail.log
:0
| $HOME/server/bin/xymon-mailack --env=/home/xymon/server/etc/xymonserver.cfg
</pre></div><div><br></div><div>When I run it on the CLI using this command </div><div><br></div><div>./xymon-mailack --env=/home/xymon/server/etc/xymonserver.cfg --debug</div><div><br></div><div>I get nothing, it just returns an empty line, and sits there. I must be missing something.</div>















</blockquote><div><br></div></div><div>Yes you are.  The xymon-mailack program expects an email message on standard input, and if run on the command-line your keyboard becomes standard input.  You can do something like this:</div>















<div><br></div><div>xymon-mailack --env=... < sample-email</div><div><br></div><div>But first you need to put an email message into the file "sample-mail".  You could create a file like this by temporarily removing the .procmailrc file (to let messages go into the xymon user's mailbox) and then sending the xymon user an email, and then copying a mail message from /var/mail/xymon.  Note that the mailbox file can contain multiple messages each separated by blank line+"From " (from-space), and you only want one of them.</div>













<span><font color="#888888">

<div><br></div><div>J</div><div><br></div></font></span></div>
</blockquote></div><br></div></div></div>
<br></div></div>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>