TLS problem

Help
Anonymous
2012-04-18
2012-09-18

  • Anonymous
    2012-04-18

    Hi,

    I have problem with establishing connection to smtp server that expect tls.
    SMTP server i probably Exchange 2010.

    Debug bellow:

    Sending emails... ## 001 #### 002 #### 003 ##
    
    SMTP -> get_lines(): $data was "" 
    SMTP -> get_lines(): $str is "220 hostname.local Microsoft ESMTP MAIL Service ready at Wed, 18 Apr 2012 11:07:33 +0300 " 
    SMTP -> get_lines(): $data is "220 hostname.local Microsoft ESMTP MAIL Service ready at Wed, 18 Apr 2012 11:07:33 +0300 " 
    SMTP -> FROM SERVER:220 hostname.local Microsoft ESMTP MAIL Service ready at Wed, 18 Apr 2012 11:07:33 +0300 
    SMTP -> get_lines(): $data was "" 
    SMTP -> get_lines(): $str is "250-hostname.local Hello [192.168.0.13] " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] " 
    SMTP -> get_lines(): $str is "250-SIZE 10485760 " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 " 
    SMTP -> get_lines(): $str is "250-PIPELINING " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING " 
    SMTP -> get_lines(): $str is "250-DSN " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN " 
    SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES " 
    SMTP -> get_lines(): $str is "250-AUTH " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH " 
    SMTP -> get_lines(): $str is "250-8BITMIME " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME " 
    SMTP -> get_lines(): $str is "250-BINARYMIME " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME " 
    SMTP -> get_lines(): $data was "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME " 
    SMTP -> get_lines(): $str is "250 CHUNKING " 
    SMTP -> get_lines(): $data is "250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME 250 CHUNKING " 
    SMTP -> FROM SERVER: 250-hostname.local Hello [192.168.0.13] 250-SIZE 10485760 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH 250-8BITMIME 250-BINARYMIME 250 CHUNKING 
    SMTP -> get_lines(): $data was "" 
    SMTP -> get_lines(): $str is "500 5.3.3 Unrecognized command " 
    SMTP -> get_lines(): $data is "500 5.3.3 Unrecognized command " 
    SMTP -> FROM SERVER:500 5.3.3 Unrecognized command 
    SMTP -> ERROR: STARTTLS not accepted from server: 500 5.3.3 Unrecognized command 
    SMTP -> get_lines(): $data was "" 
    SMTP -> get_lines(): $str is "250 2.0.0 Resetting " 
    SMTP -> get_lines(): $data is "250 2.0.0 Resetting " 
    SMTP -> FROM SERVER:250 2.0.0 Resetting
    
    exception 'phpmailerException' with message 'Language string failed to load: tls' in C:\WWW\mantis\library\phpmailer\class.phpmailer.php:804 Stack trace: #0 C:\WWW\mantis\library\phpmailer\class.phpmailer.php(705): PHPMailer->SmtpConnect() #1 C:\WWW\mantis\library\phpmailer\class.phpmailer.php(576): PHPMailer->SmtpSend('Date: Wed, 18 A...', '?Nast??puj??ce ...') #2 C:\WWW\mantis\core\email_api.php(1007): PHPMailer->Send() #3 C:\WWW\mantis\core\email_api.php(848): email_send(Object(EmailData)) #4 C:\WWW\mantis\scripts\send_emails.php(35): email_send_all() #5 {main}
    ## 004 ####err2Done.
    

    PS. This same mailbox accound work great for incoming mails.

    PS2. I use PHPMailer implemented to mantis bug tracker system.

     
  • gandolf
    gandolf
    2012-04-30

    not an expert with windows - dont wannabe - but telnet #### 25 then ehlo
    mailservername - WHAT DO YOU GET? look for the auth login type....