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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.