<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic mail check in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002165#M297397</link>
    <description>I created a sendmail check script to see if the daemon is running or not. Plain and simple. I'm not the greatest scripter. I handle hardware and OS mainly.&lt;BR /&gt;&lt;BR /&gt;Now that I can see that the sendmail service is active, Is there a true test I can issue and build it into my script? That is, does anyone out there truely check to see if it is functioning?</description>
    <pubDate>Thu, 17 May 2007 11:11:02 GMT</pubDate>
    <dc:creator>Nobody's Hero</dc:creator>
    <dc:date>2007-05-17T11:11:02Z</dc:date>
    <item>
      <title>mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002165#M297397</link>
      <description>I created a sendmail check script to see if the daemon is running or not. Plain and simple. I'm not the greatest scripter. I handle hardware and OS mainly.&lt;BR /&gt;&lt;BR /&gt;Now that I can see that the sendmail service is active, Is there a true test I can issue and build it into my script? That is, does anyone out there truely check to see if it is functioning?</description>
      <pubDate>Thu, 17 May 2007 11:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002165#M297397</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2007-05-17T11:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002166#M297398</link>
      <description>&lt;!--!*#--&gt;Shalom,&lt;BR /&gt;&lt;BR /&gt;I'm attaching some toys for this purpose that may be of help.&lt;BR /&gt;&lt;BR /&gt;Inline is a script that actually sends a mail.&lt;BR /&gt;&lt;BR /&gt;They were joint projects, I'm not a great scripter either.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;sub2(){&lt;BR /&gt;echo helo example.com&lt;BR /&gt;echo mail from:mailtester@example.com&lt;BR /&gt;echo rcpt to:${1}@${2}&lt;BR /&gt;echo data&lt;BR /&gt;echo subject:$USL end to end mail check&lt;BR /&gt;echo shmuel protter mail test&lt;BR /&gt;echo .&lt;BR /&gt;echo quit&lt;BR /&gt;}&lt;BR /&gt;WT=3&lt;BR /&gt;PRGN=$(basename $0)&lt;BR /&gt;case $1 in&lt;BR /&gt;&lt;BR /&gt;1) USL="usbm.example.com ilbm.example.com ukbm.example.com"&lt;BR /&gt;DML="example.com"&lt;BR /&gt;USR=enterpris&lt;BR /&gt;;;&lt;BR /&gt;2) USL="usmail1.ndsamericas.com usmail2.example.com"&lt;BR /&gt;DML="example.com ndsexample.com"&lt;BR /&gt;USR=jfredmugs&lt;BR /&gt;;;&lt;BR /&gt;*) echo "Usage: $PRGN {1|2}  ; 1 - test gates; 2 - test usmail"&lt;BR /&gt;exit&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;for D in $DML ; do&lt;BR /&gt;        for S in $USL ; do&lt;BR /&gt;                sub2 $USR $D |&lt;BR /&gt;                        while read A; do&lt;BR /&gt;                        echo $A&lt;BR /&gt;                        sleep $WT&lt;BR /&gt;                done | telnet $S 25 2&amp;gt;&amp;amp;1 | grep -e $USR -e $S  | grep -v ^22|grep -v Connect&lt;BR /&gt;        done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 17 May 2007 11:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002166#M297398</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-17T11:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002167#M297399</link>
      <description>This will given you version info:&lt;BR /&gt;&lt;BR /&gt;sendmail -bt -d0.1 &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;You could &lt;BR /&gt;&lt;BR /&gt;telnet server 25&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Thu, 17 May 2007 11:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002167#M297399</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-17T11:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002168#M297400</link>
      <description>Yes I left out 1 part.&lt;BR /&gt;Telnet closed. Gov't system.&lt;BR /&gt;&lt;BR /&gt;Using a general user ID with minimal permissions to do the test. Possible?</description>
      <pubDate>Thu, 17 May 2007 11:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002168#M297400</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2007-05-17T11:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002169#M297401</link>
      <description>If mail is running, you will be able to telnet to port 25...&lt;BR /&gt;&lt;BR /&gt;echo quit | telnet svr001 25&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to svr001.mydomain.net.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;220 svr001.mydomain.net ESMTP Sendmail @(#)Sendmail version 8.13.3 - Revision 1.000 - 1st August,2006/8.13.3; Thu, 17 May 2007 10:31:06 -0600 (MDT)&lt;BR /&gt;221 2.0.0 svr001.mydomain.net closing connection&lt;BR /&gt;Connection closed by foreign host.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 May 2007 11:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002169#M297401</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-17T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002170#M297402</link>
      <description>Generally just seeing if the sendmail daemon is running is sufficient. You can also examine /var/adm/syslog/mail.log periodically. If you really want to see if the sendmail daemon is responding then&lt;BR /&gt;&lt;BR /&gt;telnet localhost 25&lt;BR /&gt;or &lt;BR /&gt;telnet remote_hostname 25&lt;BR /&gt;and then issue a "quit".&lt;BR /&gt;&lt;BR /&gt;Probably the easiest way to do this is via Perl's Net::Telnet module.</description>
      <pubDate>Thu, 17 May 2007 11:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002170#M297402</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-05-17T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002171#M297403</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;telnet hostname 25 &lt;BR /&gt;&lt;BR /&gt;Does not use telnet server. It used the telnet client which is almost certainly available to test smtp which is open or we would not be having this discussion.&lt;BR /&gt;&lt;BR /&gt;ssh can be manipulated with the -p command to do this test but is hardly worth it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 17 May 2007 11:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002171#M297403</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-05-17T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: mail check</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002172#M297404</link>
      <description>Hi,&lt;BR /&gt;%echo quit|telnet 0 25 2&amp;gt;&amp;amp;1|grep Sendmail&lt;BR /&gt;220 hpbbnn1.bbn.hp.com ESMTP Sendmail 8.9.3 (PHNE_31917)/8.9.3; Fri, 18 May 2007 09:40:38 +0200 (METDST)&lt;BR /&gt;&lt;BR /&gt;This run fine on my HP-UX11i.&lt;BR /&gt;Rgds,&lt;BR /&gt;Art</description>
      <pubDate>Fri, 18 May 2007 02:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-check/m-p/4002172#M297404</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-05-18T02:42:05Z</dc:date>
    </item>
  </channel>
</rss>

