in reply to Re^2: Sending Email to Exchange server from linux box
in thread Sending Email to Exchange server from linux box

If you want to become a developer you have to learn to DEBUG! Did you try to print the list of authentication protocols you obtained from QueryAuthProtocols()? What did you get? Do you have any idea which one did you end up using? Is there anything in the docs about that protocol then? Like for example whether it is supported by Mail::Sender or whether you need to install something for it to be supported? Are you really sure the username and password is correct? Does the message change if you change it to something that's definitely wrong? Does it change if you include the domain\ in front of the username? ...

We can't debug your program for you! We don't have the address of the mail server nor the username and password. Besides you HAVE TO LEARN to debug yourself.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re^3: Sending Email to Exchange server from linux box

Replies are listed 'Best First'.
Re^4: Sending Email to Exchange server from linux box
by chandanperl (Novice) on Aug 14, 2009 at 13:06 UTC
    1) I printed the list of authentication protocols which is NTLM GSSAPI LOGIN 2) I am using LOGIN protocol for authentication which is supported by Mail::Sender. 3) username and password is correct because i can send emails without authentication. 4) whatever I am changing which is wrong it says Cannot send mail: Login not accepted

      If you can send emails without authentication, why do you attempt to authenticate? And how does the correctness of the username and pwd relate to the fact that you can send emails without using them?

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

        1)I have to send emails with authentication previously i was trying just for sending mails from linux machine to exchange. 2) I got emails when I am using same username in my outlook. This is my debug file
        >> 220 XXX.XXXX.XXX Microsoft ESMTP MAIL Service, Version: 6.0.3790.39 +59 ready at Fri, 14 Aug 2009 19:17:28 +0530 << EHLO XXX.XXXX.com >> 250- XXX.XXXX.XXX Hello [XXX.XXX.XXXX.XXX] >> 250-TURN >> 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 << AUTH LOGIN >> 334 Vsgdfd5hbWU6 << Y2hhbmRhbiAbxbchjBubWZvSDJDNdC5sb2M= >> 334 UDSzc3dvSJJD6 << UH4x >> 535 5.7.3 Authentication unsuccessful. << quit