<div>SUBJECT: Xymon [216807] lvhwebappold:disk CRITICAL (RED)</div><div><br></div><div>test</div><div><br></div><div>.</div><div>250 2.0.0 Ok: queued as D522A52F9</div><div><br></div><div><br></div><div>This is from another linux machine that I ran the telnet command from.</div>

<div><br></div><div><br></div><br><div class="gmail_quote">On Tue, Oct 2, 2012 at 11:44 AM, Andrew Rakowski <span dir="ltr"><<a href="mailto:landrew@pnnl.gov" target="_blank">landrew@pnnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ray,<br>
<br>
To follow the SMTP protocol, I believe you need to add a "data" command<br>
after your "rcpt to", then you can enter the "subject:" line (and any<br>
other headers), followed by a blank line, then the body of the message.<br>
<br>
I think postfix is complaining that it doesn't know what the "SUBJECT:<br>
xxx" command is...<br>
<br>
Cheers,<br>
<br>
-Andrew<br>
<br>
------------------------------------------------------------------------------<br>
  Andrew Rakowski       |   Voice: <a href="tel:509.371.6465" value="+15093716465">509.371.6465</a>   |  Email: <a href="mailto:landrew@pnnl.gov">landrew@pnnl.gov</a><br>
     [CISSP]       Infrastructure System Administration  [GPG key: 43994A12]<br>
Environmental Molecular Sciences Lab | Pacific Northwest National Laboratories<br>
       P.O. Box 999 | Mailstop K8-83 | Richland, WA  99352   [USA]<br>
------------------------------------------------------------------------------<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, 2 Oct 2012, Ray Reuter wrote:<br>
<br>
} Well we are getting closer. I am now able to telnet to the server. I tried to send mail to<br>
} the server but kicked off every time i try to do the subject line.<br>
} [root@xxxcacti2 ~]# telnet <a href="http://XXXXXXXX.xxx.com" target="_blank">XXXXXXXX.xxx.com</a> 25<br>
} Trying 10.1.72.168...<br>
} Connected to <a href="http://XXXXXXXXX.xxx.com" target="_blank">XXXXXXXXX.xxx.com</a> (xx.xx.x.x).<br>
} Escape character is '^]'.<br>
} 220 <a href="http://XXXXXXXXX.lvh.com" target="_blank">XXXXXXXXX.lvh.com</a> ESMTP Postfix<br>
} helo <a href="http://XXXXXXXXXX.lvh.com" target="_blank">XXXXXXXXXX.lvh.com</a><br>
} 250 <a href="http://XXXXXXX.lvh.com" target="_blank">XXXXXXX.lvh.com</a><br>
} MAIL FROM: <a href="mailto:raymond.reuter@xxx.com">raymond.reuter@xxx.com</a><br>
} 250 2.1.0 Ok<br>
} RCPT TO: <a href="mailto:xymon@xxxxxxx.xxx.com">xymon@xxxxxxx.xxx.com</a><br>
} 250 2.1.5 Ok<br>
} "SUBJECT: Xymon"<br>
} 221 2.7.0 Error: I can break rules, too. Goodbye.<br>
} Connection closed by foreign host.<br>
}<br>
} I have the .procmailrc file set up as per the xymon man page, still not sure if the "Mailbox"<br>
} is a directory or file. and the directory structure of the xymon home directory looks like<br>
} this.<br>
}<br>
} drwxr-xr-x.  2 xymon xymon  4096 Oct  2 11:02 Mailbox<br>
} -rw-r--r--.  1 xymon xymon     0 Oct  1 12:15 procmail.log<br>
} -rwxr-xr-x.  1 xymon xymon   124 Oct  2 11:04 .procmailrc<br>
}<br>
} This feature is one of the most important to the company I work for and have been trying to<br>
} get it to work for a couple of days now. We even added an MX record for the server so mail<br>
} can be delivered to it directly. Telnet works locally and remote.<br>
}<br>
} Any recommendations would be greatly appreciated, you have all been a huge help so far and<br>
} this monitoring tool has done wonders for this company.<br>
}<br>
}<br>
}<br>
}<br>
}<br>
}<br>
} On Tue, Oct 2, 2012 at 1:58 AM, Jeremy Laidman <<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>> wrote:<br>
}       On 2 October 2012 02:46, Ray Reuter <<a href="mailto:ray.reuter@gmail.com">ray.reuter@gmail.com</a>> wrote:<br>
}       I am using Centos 6.2<br>
}<br>
}<br>
} By default Centos (aka Red Hat) v6 boxes run postfix (rather than Sendmail).<br>
}<br>
}       During my install I do not remember installing anything as the mail<br>
}       transport, but the alerting was working right out of the box from day one.<br>
}<br>
}<br>
} Initially, postfix is configured so it won't accept SMTP connections from off the box.<br>
}  So outbound emails will get sent OK, but incoming emails will not get delivered to the<br>
} Xymon server.<br>
}<br>
} Test this by attempting to telnet to the Xymon server on port 25 from another device,<br>
} such as a Windows PC, with "telnet <a href="http://xymon.server.name" target="_blank">xymon.server.name</a> 25".  If you get a "connection<br>
} refused" or similar message, than you need to reconfigure Postfix to accept remote<br>
} connections.<br>
}  <br>
}       I followed the man page for the mailack and created everything as per the<br>
}       instructions, but I am not even sure the mail is reaching the server at<br>
}       this point.<br>
}<br>
}<br>
} Probably not.  Have a look at the "STANDARD_CONFIGURATION_README" file that came with<br>
} Postfix for instructions on setting things up, particularly the "Postfix on a local<br>
} network" section.<br>
}<br>
} J<br>
}<br>
}<br>
}<br>
} </div></div></blockquote></div><br>