in reply to Continuously Monitor and Handle emails recieved from the 2007 exchange server

I don't see anything wrong with your first code. So you should try the login using telnet.

telnet webmail2.sonicwall.com 110 . . . <response from server> user sdevassy +OK . . . <response from server> pass xxxxxx +OK . . . <response from server> quit
If the above doesn't work, your perl code will never work! If it does work, then we can analysis the results and help you from there.

Good Luck.

"Well done is better than well said." - Benjamin Franklin

  • Comment on Re: Continuously Monitor and Handle emails recieved from the 2007 exchange server
  • Download Code

Replies are listed 'Best First'.
Re^2: Continuously Monitor and Handle emails recieved from the 2007 exchange server
by sinild (Initiate) on Jan 13, 2012 at 07:53 UTC

    Thanks a lot. Here is my telnet log:

    [root@localhost ~]# telnet webmail2.sonicwall.com 110 Trying 10.50.128.192... Connected to webmail2.sonicwall.com. Escape character is '^]'. +OK The Microsoft Exchange POP3 service is ready. user sdevassy +OK pass xxxxxx -ERR Logon failure: unknown user name or bad password.

    I tried with user SUX\sdevassy and user SUX\sdevassy\Sinil Devassy (domain name\user name\mail box) with no luck.

    I have sent an email to my Corporate IT infrastructure Mgmt Team. Waiting response from them.. Will update you then.....

    Once again, many many thanks for pointing me the right direction.

      You are using a wrong login name. MS Exchange needs an AD account for login. This ist usually written as <DOMAIN NAME>\<USER NAME> or user@FQDNofDomain UPN (userPrincipalName) which looks like email address and often equals to the email address of the user for the sake of simplicity (just ask you AD administrator).