<?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 Re: Error sending e-mails from Java - ehlo problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145195#M318136</link>
    <description>Great tip but the problem is sending e-mail from that server not receiving... These all look like settings if you are accepting e-mail. Am I wrong?</description>
    <pubDate>Sat, 16 Feb 2008 06:35:58 GMT</pubDate>
    <dc:creator>P-Dicky</dc:creator>
    <dc:date>2008-02-16T06:35:58Z</dc:date>
    <item>
      <title>Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145190#M318131</link>
      <description>&lt;BR /&gt;Hello Everyone &lt;BR /&gt;&lt;BR /&gt;So trying to send e-mail with Javamail 1.4ea I get the following on my prod server (this is in debug mode). I'm using HPUX 11.11 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On Prod&lt;BR /&gt;&lt;BR /&gt;DEBUG: setDebug: JavaMail version 1.4ea&lt;BR /&gt;DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]&lt;BR /&gt;DEBUG SMTP: useEhlo true, useAuth false&lt;BR /&gt;DEBUG SMTP: trying to connect to host "172.30.1.20", port 25, isSSL false&lt;BR /&gt;220 fandpmfg.com [ESMTP Server] service ready;ESMTP Server; 02/08/08 14:03:26&lt;BR /&gt;&lt;BR /&gt;DEBUG SMTP: connected to host "172.30.1.20", port: 25&lt;BR /&gt;&lt;BR /&gt;EHLO&lt;BR /&gt;&lt;BR /&gt;501 Syntax error in parameters or arguments - &lt;BR /&gt;&lt;BR /&gt;HELO&lt;BR /&gt;&lt;BR /&gt;501 Syntax error in parameters or arguments - &lt;BR /&gt;&lt;BR /&gt;javax.mail.MessagingException: 501 Syntax error in parameters or arguments -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On Demo my demo server&lt;BR /&gt;&lt;BR /&gt;DEBUG: setDebug: JavaMail version 1.4ea&lt;BR /&gt;DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]&lt;BR /&gt;DEBUG SMTP: useEhlo true, useAuth false&lt;BR /&gt;DEBUG SMTP: trying to connect to host "172.30.1.20", port 25, isSSL false&lt;BR /&gt;220 fandpmfg.com [ESMTP Server] service ready;ESMTP Server; 02/08/08 14:05:16&lt;BR /&gt;&lt;BR /&gt;DEBUG SMTP: connected to host "172.30.1.20", port: 25&lt;BR /&gt;&lt;BR /&gt;EHLO demoglo&lt;BR /&gt;&lt;BR /&gt;250-fandpmfg.com&lt;BR /&gt;&lt;BR /&gt;250-SIZE 26214400&lt;BR /&gt;&lt;BR /&gt;250-8BITMIME&lt;BR /&gt;&lt;BR /&gt;250 STARTTLS&lt;BR /&gt;&lt;BR /&gt;DEBUG SMTP: Found extension "SIZE", arg "26214400"&lt;BR /&gt;DEBUG SMTP: Found extension "8BITMIME", arg ""&lt;BR /&gt;DEBUG SMTP: Found extension "STARTTLS", arg ""&lt;BR /&gt;DEBUG SMTP: use8bit false&lt;BR /&gt;&lt;BR /&gt;The prod server is always doing my dns resolving... Any tips? &lt;BR /&gt;&lt;BR /&gt;Thank you &lt;BR /&gt;Paul</description>
      <pubDate>Thu, 14 Feb 2008 17:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145190#M318131</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2008-02-14T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145191#M318132</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Simple Mail Transfer Protocol RFCs stipulate use of HELO and EHLO.&lt;BR /&gt;&lt;BR /&gt;Invalid usage of HELO/EHLO in the SMTP dialogue is your problem.&lt;BR /&gt;&lt;BR /&gt;I used to own and run a Linix-based ISP,&lt;BR /&gt;so I dealt with these kind of issues&lt;BR /&gt;regularly :)&lt;BR /&gt;&lt;BR /&gt;FQDN in the SMTP EHLO statement is enough to block close to 25% of incoming spam.&lt;BR /&gt;&lt;BR /&gt;Most Mail Transfer Agents (MTAs)perform DNS&lt;BR /&gt;(A- and PTR- resource records) verification&lt;BR /&gt;on the domain name given on the SMTP HELO&lt;BR /&gt;and EHLO commands. This can violate RFC 2821,&lt;BR /&gt;so email is usually not rejected by default.&lt;BR /&gt;&lt;BR /&gt;In other words, EHLO and HELO typically&lt;BR /&gt;require FQDN. Some examples for a properly&lt;BR /&gt;set MTA (same applies to HELO and EHLO):&lt;BR /&gt;&lt;BR /&gt;Invalid HELO localhost&lt;BR /&gt;Invalid HELO 127.0.0.1&lt;BR /&gt;Valid HELO mydomain.dom&lt;BR /&gt;Valid HELO [127.0.0.1]&lt;BR /&gt;&lt;BR /&gt;If you get an error message saying "Improper&lt;BR /&gt;HELO/EHLO", it is due to the connecting&lt;BR /&gt;computer or session not complying with the&lt;BR /&gt;SMTP standard. More specifically, it had an&lt;BR /&gt;invalid argument to the HELO-command. There&lt;BR /&gt;are several ways of getting this wrong.&lt;BR /&gt;&lt;BR /&gt;RFC 2821, section 4.1.1.1 states:&lt;BR /&gt;&lt;BR /&gt;A client MUST issue HELO or EHLO before&lt;BR /&gt;starting a mail transaction.&lt;BR /&gt;&lt;BR /&gt;A mail transaction is started by the command&lt;BR /&gt;MAIL FROM.&lt;BR /&gt;&lt;BR /&gt;I remember some Java applications at private hospital group that could not set the&lt;BR /&gt;EHLO/HELO properly. In the end, to help them,  I devised a solution that used Procmail&lt;BR /&gt;filtering. Procmail was receiving email&lt;BR /&gt;from Java applications, then adding all appropriate headers and ensuring&lt;BR /&gt;SMTP standards, and finally forwarding&lt;BR /&gt;to external sites. I did it in 2002&lt;BR /&gt;and recently that company approached me&lt;BR /&gt;and said they still used the solution :)&lt;BR /&gt;&lt;BR /&gt;I hope this helps,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 15 Feb 2008 08:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145191#M318132</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-02-15T08:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145192#M318133</link>
      <description>Read the previous detailed answer because you'll save yourself a lot of headaches if you strictly follow the standards, but the short answer is that your prod system appears to be sending just "EHLO" instead of the correct "EHLO client-name". It's probably an application configuration problem, you may have missed something when you moved to prod.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Feb 2008 16:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145192#M318133</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-02-15T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145193#M318134</link>
      <description>I understand the problems and why it exists. I'm just wondering where to correct it on the HPUX side. The e-mail is just a report going to my local mail server.</description>
      <pubDate>Sat, 16 Feb 2008 04:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145193#M318134</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2008-02-16T04:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145194#M318135</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The problem is not on the HP-UX side. The &lt;BR /&gt;problem is your improperly set up Java &lt;BR /&gt;application.&lt;BR /&gt;&lt;BR /&gt;Like everything in life, certain rules of&lt;BR /&gt;the engagement should be respected.&lt;BR /&gt;&lt;BR /&gt;However, this is your private server and you&lt;BR /&gt;can by-pass all RFCs if you wish so :)&lt;BR /&gt;On internet, I can assure you that your &lt;BR /&gt;messages would be rejected on the spot.&lt;BR /&gt;&lt;BR /&gt;Therefore, look at confPRIVACY_FLAGS in&lt;BR /&gt;sendmail.cf:&lt;BR /&gt;&lt;BR /&gt;needmailhelo&lt;BR /&gt;needvrfyhelo&lt;BR /&gt;needexpnhelo&lt;BR /&gt;&lt;BR /&gt;These three flags cause Sendmail to require a valid HELO/EHLO command from the client before accepting certain other commands.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sat, 16 Feb 2008 06:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145194#M318135</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-02-16T06:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145195#M318136</link>
      <description>Great tip but the problem is sending e-mail from that server not receiving... These all look like settings if you are accepting e-mail. Am I wrong?</description>
      <pubDate>Sat, 16 Feb 2008 06:35:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145195#M318136</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2008-02-16T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145196#M318137</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;When your JavaMail on the production server&lt;BR /&gt;is sending an email message, it tries to &lt;BR /&gt;connect to SMTP server at IP address&lt;BR /&gt;172.30.1.20 on port 25. It is duty of&lt;BR /&gt;JavaMail to introduce itself to the&lt;BR /&gt;SMTP gateway. In other words, in should&lt;BR /&gt;send "EHLO FQDN" firstly. The demo server&lt;BR /&gt;is doing it but the production one is not.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Feb 2008 08:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145196#M318137</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-02-16T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145197#M318138</link>
      <description>See I know the demo server is doing it! Just wondering where that setting is on the production server...</description>
      <pubDate>Sat, 16 Feb 2008 08:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145197#M318138</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2008-02-16T08:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error sending e-mails from Java - ehlo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145198#M318139</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Maybe check vendor's documentation and:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/products/javamail/FAQ.html" target="_blank"&gt;http://java.sun.com/products/javamail/FAQ.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The FAQ says:&lt;BR /&gt;&lt;BR /&gt;The SMTP provider uses the results of&lt;BR /&gt;InetAddress.getLocalHost().getHostName() in&lt;BR /&gt;the SMTP HELO command. If that call fails to&lt;BR /&gt;return any data, no name is sent in the&lt;BR /&gt;HELO/EHLO command. Check your JDK and name&lt;BR /&gt;server configuration to ensure that that&lt;BR /&gt;call returns the correct data. You may also&lt;BR /&gt;set the "mail.smtp.localhost" property to the&lt;BR /&gt;name you want to use for the HELO/EHLO&lt;BR /&gt;command.&lt;BR /&gt;&lt;BR /&gt;In other words, something like:&lt;BR /&gt;&lt;BR /&gt;Properties props = new Properties();&lt;BR /&gt;props.put("mail.smtp.host", args[0]);&lt;BR /&gt;props.put("mail.smtp.localhost", "mysrv.mydomain.dom");&lt;BR /&gt;mailSession = javax.mail.Session.getDefaultInstance(props, null);&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sun, 17 Feb 2008 06:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-sending-e-mails-from-java-ehlo-problem/m-p/4145198#M318139</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-02-17T06:47:01Z</dc:date>
    </item>
  </channel>
</rss>

