Pop3 Client fails while connecting to server

Hi,

For some reason, we could not continue with this back in Feb. We have now downloaded latest version (v17.8) of Aspose.Email and tried. It throws below exception. Please help us on this.

Exception
((Aspose.Email.AsposeException)ex).Message:
STAT failed:-ERR Logon failure: unknown user name or bad password.

ex.StackTrace:
at #=q$a8nuFGEBvQRrAINaoeHKjFcjA7UqavprFKi4QwtplF4b6usOg6aYVZsp0LYiY9A.#=qN_bi05EPFqEKL5a1lyuXIA==(IAsyncResult #=qoAmEX4qzKcwZw9zB2UShLQ==)
at #=q$a8nuFGEBvQRrAINaoeHKjFcjA7UqavprFKi4QwtplF4b6usOg6aYVZsp0LYiY9A.#=qN_bi05EPFqEKL5a1lyuXIA==()
at Aspose.Email.Clients.Pop3.Pop3Client.EndGetMessageCount(IAsyncResult asyncResult)
at Aspose.Email.Clients.Pop3.Pop3Client.#=q5mSipN_cdwS6VKZnZVwP2MU8RX3K3WWqSzipTCmxlWQ=(#=qCwhieg2Kx_FtZMdR32v19Xf5wI8V_0vamhsnhHYc1e0vvjMh4ihIs0XY5geLWzTV #=q3bZxIvxChvWVjvf6k3RA3g==, Boolean #=qCIRm4MZMmktWdBbm6SjAPutyTAt8a0Bs_N83hP7i0vU=)
at Aspose.Email.Clients.Pop3.Pop3Client.#=qG$w4oMcXil_7jBEE2RGKlnymAtfhOTkETJxjMqBGM7Y=.#=qJUOAQCF8waLujwLcr8S2K9OSBJNGRrZCicHmvsiXBCw=()
at #=qvo2x7sVXL4KOORsMjvILgRDAbs8ctgeLPGzpgSs2NUOjqEIDKipvItZij4nVEgq1.#=q_wg34kGASpZH75fNQFVxag==(#=qb3ViV4BoZ1pRfaVhQZM9wVeMG0ZZDgkkKDd5S1r3x2xZ_h2l6cozhypIHNEkNHDA #=qW$UMSvqSt9ZONzVTxazDVQ==)
at Aspose.Email.Clients.Pop3.Pop3Client.GetMessageCount(IConnection iConnection, Boolean closeTransaction)
at Aspose.Email.Clients.Pop3.Pop3Client.GetMessageCount()
at Aspose.Email.Examples.CSharp.Email.POP3.Pop3ClientActivityLogging.Run() in D:\Aspose Sample Code\Aspose.Email-for-.NET-master\Examples\CSharp\POP3\Pop3ClientActivityLogging.cs:line 30

ex.InnerException.StackTrace
at #=qoZoaSFCVYtRIM_vCOPidWL50p3B4h03ZP9QbKpBXcKD4o8MfjiMcf2iqEGDZMdd1.#=qa92uFUrR2uCqDJ8awbBaiA==()
at #=qJZj1v9pRDAuf6DGjQ8NL08qj1bKBvavU0fbJWW4Db3bQuN17LGbZRhuiuNXNtvH7.#=q8_tePcUlDTOpWfGEeY31Tg==(Object #=qqiW3rJAm1gfmtyyVFr3ZXw==)

@Conduent,

The error message seems related to wrong user name or password, and the issue seems specific to your server. Could you please share a test account credentials with us for further investigation at our end? Other than that, we won’t be able to reproduce the problem at our end and assist you.

Kashif,

We have verified the user name/password and passing the valid values only. The interesting part is, the same account is working well with Aspose.Email version 3.3. We are unable to understand why it is not working with latest version (17.8)? We use internal pop3 server which cannot be shared with you. Please let us know how we can overcome this issue.

Thanks,
Keshava

@Conduent,

Since your server is not accessible to us, the only thing you can do is share the POP3 Activity log with us for further analysis by our Product team. Since the activity logging is available only version 4.1 onwards, you can share the activity log of latest version for further investigation of this issue at our end. Also, please share with us your complete sample code that you are trying at your end.

PS: For separation of concerns, I am splitting this thread to a new topic so that we can follow this new issue properly in a separate post.

Kashif,

Please find attached a zip file with sample code as well as the log file.

Aspose.Email.Code_Log.zip (1.5 KB)

Thanks,
Keshava.

@Conduent,

Thank you for sharing the log file and sample code. We have forwarded this problem to our Product team via issue id: EMAILNET-38804 for looking into it in more detail. We’ll update you here once there is some information or a fix version available in this regard.

Hi,

Do you have an update on this issue?

Thanks,
Keshava

@Conduent,

This has been fixed and will be available in the next version of Aspose.Email for .NET 17.9. You will be notified here automatically once the fix version is available for download.

@Conduent,

This issue has been fixed in the latest release of Aspose.Email for .NET 17.9. Please let us know if we can be of any additional help to you in this regard.

Hi there,

We tried the latest release in a windows standalone test application (which runs on logged in windows domain user) and it works just fine. However, we are facing some issue when we use it with our windows service. The windows service when runs with Network Service/Local System Account it is failing to connect to email server.

Request you to provide a solution to the above issue ASAP.

Log files: TestAsposeSerivceLog14_9_2017.zip (2.5 KB)

Thanks,
Keshava

@Conduent,

Could you please share your sample windows service with us and the steps to execute it at our end for observing the issue? It will help us investigate the issue quickly and assist you further.

Hi,

Thanks for the response. Please find attached sample windows service below. We can not send our actual one as it involves lot on sensitive things which cannot be shared. The instructions are given in a text file in the zip.

TestAspose_WinService.zip (37.7 KB)

Thanks,
Keshava

@Conduent,

We are working on this issue but need to share that you get SocketException and empty log.
Probably problem in firewall settings which block this activity for Network Service/Local System. Could you please check the settings and try this service again?

Hi,

This looks like McAfee antivirus issue on development system. It is blocking the service to connect the email server. We tried on another system where McAfee is not installed, the service is able to connect the mail server and download the emails.

We will further test and update our results.

Thanks,
Keshava.

@Conduent,

Many thanks for your feedback. We are glad that provided information was useful to you in resolving the issue. Please feel free to write to us in case you have any further query related to the API.