I am having issues with using Mail::SendEasy with our Exchange server. The code I am using worked fine on our old Lotus Notes server.

My IT people and I used an ethernet sniffer and found that the script is sending the "EHLO main" command and getting a valid response(see below). Then the send mail fails returning "Authentication error". Then the SMTP session times out.

The "Authentication error" does not make any sense. The only authentication we allow is based on IP address there is no username/password authentication used.

The funny thing is if I change the string to be HELO instead of EHLO I can send mail with out a problem.

Does any one have any suggestions as to what to do?

Using a telnet client connecting to port 25 I got the following responses form the old Notes server

EHLO main 250-CHIMAIL1.TMRIUSA.COM Hello main ([xxx.xx.xx.xx]), pleased to meet +you 250-HELP 250-SIZE 250 PIPELINING HELO main 250 CHIMAIL1.TMRIUSA.COM Hello main ([xxx.xx.xx.xx]), pleased to meet +you

And this is what I get from the Exchange server

EHLO main 250-chiexc.TMRIUSA.COM Hello [xxx.xx.xx.xx] 250-SIZE 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-STARTTLS 250-X-ANONYMOUSTLS 250-AUTH NTLM 250-X-EXPS GSSAPI NTLM 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250-XEXCH50 250-XRDST 250 XSHADOW HELO main 250 chiexc.TMRIUSA.COM Hello [xxx.xx.xx.xx]

Further information:

This is perl 5, version 14, subversion 1 (v5.14.1) built for MSWin32-x +86-multi-thread Binary build 1401 [294969] provided by ActiveState http://www.ActiveSt +ate.com Built Jun 16 2011 18:54:40
Mail::SendEasy Version: 1.2 Released: 2004-04-09

In reply to Problem with Mail::SendEasy and Exchange server by dracos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.