Re: Net::SMTP fails



On 2008-05-09 19:07, smallpond <smallpond@xxxxxxxx> wrote:
Peter J. Holzer wrote:
On 2008-05-07 20:10, smallpond <smallpond@xxxxxxxx> wrote:
This line:
250-AUTH LOGIN PLAIN XYMCOOKIE
says that you must authenticate with one of the types: LOGIN, PLAIN or XYMCOOKIE.


No, it says that you *can* authenticate using one of these methods.

The response from the server when Dave tried not authenticating already told us
that you *must* authenticate:

Net::SMTP=GLOB(0x82ccfac)<<< 530 authentication required

You will notice that "250-AUTH LOGIN PLAIN XYMCOOKIE" and "530
authentication required" are not the same message.

The fist means "This server supports the following authentication
methods and you can authenticate yourself using any of them". It doesn't
say that authentication is required, only that it is possible. It may be
the case the authentication is required for some specific operations,
but again, this message doesn't tell you for which. (as a bit of
anectotal evidence, in late 2005 I was collecting statistics about ESMTP
extensions: AUTH was announced by 50 % of the MXs we were sending mail
to - but we could send mail to them just fine, no authentication was
required).

The second message means: "authentication is required for this specific
operation" (probably a RCPT command). This one says that you *must*
authenticate, and the earlier response to EHLO told you which methods
you *can* use.


So are you suggesting that Dave try to authenticate with a method not from the list?

No. I wasn't suggesting anything to the OP, I was just correcting your
mistaken statement about what the response to EHLO means.

(In fact I haven't seen anything from the OP that indicates that he
tried to authenticate at all, so I'd suggest that he try to authenticate
using a method from the list, but maybe I missed a posting)

hp

.



Relevant Pages

  • Re: Net::SMTP fails
    ... Peter J. Holzer wrote: ... 250-AUTH LOGIN PLAIN XYMCOOKIE ... it says that you *can* authenticate using one of these methods. ... So are you suggesting that Dave try to authenticate with a method not from the list? ...
    (comp.lang.perl.misc)
  • Re: NTLM 24-byte response generated by giving windows APIs a chal
    ... authenticate as someone else rather than the current user, ... basically is provide a response to a challenge ... I also spent some time messing with type-2 message flags to disable the ... "short circuit" that occurs if you login to the local system using ...
    (microsoft.public.platformsdk.security)
  • Re: VNC authentication weakness
    ... > authenticate without knowing the password simply by connecting within ... > response as the legitimate client. ... Since DES ignores the low bit of each byte ... can easily precompute every possible challenge the VNC server would send ...
    (Bugtraq)
  • urllib2 and HTTPBasicAuthHandler
    ... I started to use urllib2 library and HTTPBasicAuthHandler class in order to authenticate with a http server. ... response = meth ... urllib2.HTTPError: HTTP Error 401: Unauthorized ...
    (comp.lang.python)
  • RE: Application center test
    ... Thanks for your response. ... Forms authentication relies on login ... and it's the login form which is responsible for authenticate the ...
    (microsoft.public.vsnet.enterprise.tools)