Net error:SMTP-stateauth() if Authen:SASL:XS



  • Versions:

    • Windows XP SP3 32-bit
    • CYGWIN_NT-5.1 2.5.1(0.297/5/3) 2016-04-21 22:12 i686 Cygwin
    • This is perl 5, version 22, subversion 2 (v5.22.2) built for cygwin-thread-multi-64int
    • perl-Authen-SASL-2.16-2
    • perl-Authen-SASL-XS-1.00-1

    When the package is installed perl-Authen-SASL-2.16-2 Cygwin installation programme setup-x86.exe warns that it depends on it. perl-Authen-SASL-XS-1.00-1♪ As a result, we have such a fragment of the sewer:

    Net::SMTP::_SSL>>> Net::SMTP::_SSL
    Net::SMTP::_SSL>>>   IO::Socket::SSL(2.027)
    Net::SMTP::_SSL>>>     IO::Socket::IP(0.37)
    Net::SMTP::_SSL>>>       IO::Socket(1.38)
    Net::SMTP::_SSL>>>         IO::Handle(1.35)
    Net::SMTP::_SSL>>>           Exporter(5.72)
    Net::SMTP::_SSL>>>   Net::SMTP(3.05)
    Net::SMTP::_SSL>>>     Net::Cmd(3.05)
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 220 smtp3h.mail.yandex.net ESMTP...
    Net::SMTP::_SSL=GLOB(0x206713a8)>>> EHLO localhost.localdomain
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250-smtp3h.mail.yandex.net
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250-8BITMIME
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250-PIPELINING
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250-SIZE 42991616
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250-AUTH LOGIN PLAIN XOAUTH2
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250-DSN
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 250 ENHANCEDSTATUSCODES
    Connected to smtp.yandex.ru at /cygdrive/c/do/scripts/Yotools.pm line 559.
    Auth'n as user-name... at /cygdrive/c/do/scripts/Yotools.pm line 562.
    auth() error at /cygdrive/c/do/scripts/Yotools.pm line 564.
    Net::SMTP::_SSL=GLOB(0x206713a8)>>> QUIT
    Net::SMTP::_SSL=GLOB(0x206713a8)<<< 221 2.0.0 Closing connection.
    

    And no diagnostics. Authen::SASL♪ In the search for the reason Under duress. Authen::SASL::XSthat was deinstalled. As a result, earned:

    ...
    Net::SMTP::_SSL=GLOB(0x206715f0)<<< 250-AUTH LOGIN PLAIN XOAUTH2
    Net::SMTP::_SSL=GLOB(0x206715f0)<<< 250-DSN
    Net::SMTP::_SSL=GLOB(0x206715f0)<<< 250 ENHANCEDSTATUSCODES
    Connected to smtp.yandex.ru at /cygdrive/c/do/scripts/Yotools.pm line 559.
    Auth'n as user-name... at /cygdrive/c/do/scripts/Yotools.pm line 562.
    Net::SMTP::_SSL=GLOB(0x206715f0)>>> AUTH LOGIN
    Net::SMTP::_SSL=GLOB(0x206715f0)<<< 334 VXNlcm5hbWU6
    Net::SMTP::_SSL=GLOB(0x206715f0)>>> USER_NAME
    Net::SMTP::_SSL=GLOB(0x206715f0)<<< 334 UGFzc3dvcmQ6
    Net::SMTP::_SSL=GLOB(0x206715f0)>>> PASSWORD
    Net::SMTP::_SSL=GLOB(0x206715f0)<<< 235 2.7.0 Authentication successful.
    auth()'d at 'smtp.yandex.ru' as 'user-name'
    ...
    

    ♪ https://metacpan.org/pod/distribution/Authen-SASL/lib/Authen/SASL.pod Authen::SASL It says:

    The framework allows different implementations of the connection class to be plugged in... ♪

    By default the order in which these plugins are selected is Authen::SASL::XSAuthen::SASL::Cyrus and then Authen::SASL::Perl

    If you want to change it or want to specifically use one implementation only simply do

    use Authen::SASL qw(Perl);
    

    But I don't want to get into the standard module code. Net::SMTPwhich Uses default plates for authentication (XS)

    In addition, https://metacpan.org/pod/distribution/Authen-SASL/lib/Authen/SASL.pod dependency Authen::SASL::XS It's not said.

    Google's few more seats. https://foswiki.org/Support/Faq69 ♪ https://rtcpan.develooper.com/Public/Bug/Display.html?id=100235 ), where similar problems are mentioned, they say Authen::SASL::Perl Works. Good enough and recommended for disposal Authen::SASL::XS

    I couldn't reach Cygwin's mailing list, my letter. @mail.ruGoing nowhere.

    Do you need this module?



  • Do you need this module?

    If the automobile does no problem, it's good. But you can never remove it. I don't know how Windows and 5.22, but in 5.18 linux, in such cases, it is often possible to specify an alternative version of the module to a module depends on it:

    use Authen::SASL::Perl;
    use Net::SMTP::SSL;
    # и другие Authen::SASL::* уже не дёргаются
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2