Menu

Authentication

Help
Anonymous
2003-04-18
2003-07-01
  • Anonymous

    Anonymous - 2003-04-18

    Error in VS:

    A first chance exception of type 'OpenSmtp.Mail.SmtpException' occurred in opensmtp.dll

    Additional information: ERROR - Expecting: 354. Recieved: 250 RCPT TO:<xxxxx@optonline.net> OK

    Log:
    connecting to:smtp.samstrategies.com:25[server]: 220 mta3.wss.scd.yahoo.com ESMTP Service (7.0.008) ready
    [client]: EHLO smtp.samstrategies.com
    [server]: 250-mta3.wss.scd.yahoo.com
    250-DSN
    250-EXPN
    250-8BITMIME
    250-PIPELINING
    250-HELP
    250-ETRN
    250-AUTH=LOGIN
    250-AUTH LOGIN DIGEST-MD5 PLAIN
    250-DELIVERBY 300
    250 SIZE 20971520
    [client]: AUTH LOGIN
    [server]: 334 VXNlcm5hbWU6
    [client]: cmVtaW5kZXJzQHNhbXN0cmF0ZWdpZXMuY29t
    [server]: 334 UGFzc3dvcmQ6
    [client]: NTVtZXJjZWRlcw==
    [server]: 235 LOGIN authentication successful
    [client]: MAIL FROM: <xxxxx@samstrategies.com>
    [client]: RCPT TO: <xxxxx@optonline.net>
    [server]: 250 MAIL FROM:<xxxxx@samstrategies.com> OK
    [client]: DATA
    [server]: 250 RCPT TO:<xxxxx@optonline.net> OK

    Same auth settings work fine in OutLook. OpenSmtp works fine with 2 other SMTP server.

    Any ideas ?

    Thanks,
    John

     
    • Anonymous

      Anonymous - 2003-04-18

      OK.

      After playing with the source code for a while....and stumbling my way thru the RFCs provided. I mangled together a fix that works for my specific situation.

      Turns out it wasn't auth that was the problem. The log showed I was being granted rights to send But....it also showed Yahoo was sending a response for EVERY address in the To/CC/BCC lists. That was hosing the code.

      So....what I did.

      EnablePipelining = true;

      Add a property I can use to signify Yahoo.

      If it's Yahoo....loop thru like this after sending the lists.

      if(this.yahoo == true)
      {
         int i = msg.recipientList.Count + msg.ccList.Count + msg.bccList.Count;  
         while(i>0)
         {
             CheckForError(ReadFromStream(ref nwstream), ReplyConstants.OK);
             i--;
          }
      }

      Cheesy but it works.     :)       

       
    • Anonymous

      Anonymous - 2003-04-18

      Change one line to:

      int i = ((msg.recipientList.Count-1) + msg.ccList.Count + msg.bccList.Count);  

       
    • Ian Stallings

      Ian Stallings - 2003-04-21

      Thanks for the info, I will add this fix to the code base with the next release.

       
    • Anonymous

      Anonymous - 2003-07-01

      Hello,
      This is the first time I try OpenSmtp library.
      I have some trouble with SMTP autentication. The following is the log:
      [client]: HELO mail.westechnologies.it
      [server]: 250 westechnologies.it Hello [62.211.145.213]
      [client]: AUTH LOGIN
      [server]: 503 5.5.2 Send hello first.
      [client]: MAIL FROM: <ubay@westechnologies.it>
      [server]: 250 2.1.0 ubay@westechnologies.it....Sender OK
      [client]: RCPT TO: <posta@ugo.bay.name>
      [server]: 550 5.7.1 Unable to relay for posta@ugo.bay.name
      As you can see I receive "send hello first" message.
      The server is an MS EXchange 2000. I am the administrator.
      Could you help me ?
      Thank you in advance.
      Ugo

       
    • Anonymous

      Anonymous - 2003-07-01

      Hello again,
      just after some "thinking and evaluating" I solve the prevoius problem by myself: just set the PIPELINING property to TRUE. OK, now we are ready for next question. The following log coming from my Exchange 2000 server. It show the some behaviour observerd by John on Yahoo mail server.
      Thank you in advance for the fix.
      Ugo

      [client]: EHLO mail.westechnologies.it
      [server]: 250-westechnologies.it Hello [62.211.145.213]
      250-TURN
      250-ATRN
      250-SIZE
      250-ETRN
      250-PIPELINING
      250-DSN
      250-ENHANCEDSTATUSCODES
      250-8bitmime
      250-BINARYMIME
      250-CHUNKING
      250-VRFY
      250-X-EXPS GSSAPI NTLM LOGIN
      250-X-EXPS=LOGIN
      250-AUTH GSSAPI NTLM LOGIN
      250-AUTH=LOGIN
      250-X-LINK2STATE
      250-XEXCH50
      250 OK
      [client]: AUTH LOGIN
      [server]: 334 xxxxxxxxxxx
      [client]: yyyyyyyy
      [server]: 334 xxxxxxxxxxx
      [client]: yyyyyyyyyyyyy
      [server]: 235 2.7.0 Authentication successful.
      [client]: MAIL FROM: <ubay@westechnologies.it>
      [client]: RCPT TO: <posta@ugo.bay.name>
      [server]: 250 2.1.0 ubay@westechnologies.it....Sender OK
      [client]: DATA
      [server]: 250 2.1.5 posta@ugo.bay.name

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.