0 votes
by (120 points)

Randomly downloading email using POP3 not working.


Rebex.Net.Pop3Exception: An existing connection was forcibly closed by the remote host ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at Rebex.Net.ProxySocket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at Rebex.Net.WAB.EB(Byte[] A, Int32 B, Int32 C)
at Rebex.Net.WAB.CB(TAB A, Boolean B)
at Rebex.Net.Pop3.WS(Stream A)
--- End of inner exception stack trace ---
at Rebex.Net.Pop3.WS(Stream A)
at Rebex.Net.Pop3.DR(Int32 A, Stream B)
at Rebex.Net.Pop3.FR(Int32 A)
at Pyton.Server.MailRecevier.POP3Receiver.GetMessage(String strMsgNumber)
at Server.ServerCore.CLPost.DataAccess.EmailBox.GetNewEmailList()

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (58.9k points)

The exception error means that the connection has been closed (either by the POP3 server itself, or by some ill-behaved network device along the way).
Do you have access to the POP3 server? If yes, please try checking the POP3 server log and see whether and why the server has closed the active connection.

Workaround in Rebex components could be to retry the GetMessage operation a few times if this particular error is caught in a try catch block.

Most full-featured email clients, retry operations a few times before giving up. This way they eliminate network/server glitches.