0 votes
by (270 points)

Additional information:

  1. The mail account used in this case is the custom gmail account

  2. However the smtp server remains gmail.com

Query:

Is there a way to enable the rebex debug logs with out the code changes?

TLSException

Rebex.Net.TlsException: Connection was closed by the remote connection end10:46:12:386     Information         1          WebMail    Generic error in sendWebMail : Rebex.Net.TlsException: Connection was closed by the remote connection end. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at Rebex.Net.ProxySocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at Rebex.Net.DIL.MD()
   at Rebex.Net.DIL.YD(Byte[] C, Int32 D, Int32 L)
   --- End of inner exception stack trace ---
   at Rebex.Net.DIL.YD(Byte[] C, Int32 D, Int32 L)
   at Rebex.Net.TlsSocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at Rebex.Net.TSL.MH(Byte[] C, Int32 D, Int32 L)
   at Rebex.Net.Smtp.UV(String C, String D)
   at Rebex.Net.Smtp.ZGH(String C, String D)
   at Rebex.Net.Smtp.XGH(String C, String[] D, String L, Stream T, TransferEncoding Z)
   at Rebex.Net.Smtp.EGH(MimeMessage C, Stream D, MailAddress L, MailAddressCollection T)
   at Rebex.Net.Smtp.IGH(MailMessage C, MailAddress D, MailAddressCollection L)
   at Rebex.Net.Smtp.Send(MailMessage mail, String sender, String recipients)
   at WebMail.WebMailClient.sendWebMail(Boolean bAsyncMode, String sMailServer, String serverType, Int11:15:22:957     Error               1          WebMail    Error in sendWebMail : Rebex.Net.SmtpException: Timeout - closing connection. n69-v6sm4957801ioi.35 - gsm11:15:22:985     Information         1          WebMail    Error in sendWebMail : Rebex.Net.SmtpException: Timeout - closing connection. n69-v6sm4957801ioi.35 - gsmtp (451).
   at Rebex.Net.Smtp.ZGH(String C, String D)
   at Rebex.Net.Smtp.XGH(String C, String[] D, String L, Stream T, TransferEncoding Z)
   at Rebex.Net.Smtp.EGH(MimeMessage C, Stream D, MailAddress L, MailAddressCollection T)
   at Rebex.Net.Smtp.IGH(MailMessage C, MailAddress D, MailAddressCollection L)
   at Rebex.Net.Smtp.Send(MailMessage mail, String sender, String recipients)
   at WebMail.WebMailClient.sendWebMail(Boolean bAsyncMode, String sMailServer, String serverType, Int11:15:22:989     Error               1          WebMail    Generic error in sendWebMail : Rebex.Net.TlsException: Connection was closed by the remote connection end11:15:22:990     Information         1          WebMail    Generic error in sendWebMail : Rebex.Net.TlsException: Connection was closed by the remote connection end. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at Rebex.Net.ProxySocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at Rebex.Net.DIL.MD()
   at Rebex.Net.DIL.YD(Byte[] C, Int32 D, Int32 L)
   --- End of inner exception stack trace ---
   at Rebex.Net.DIL.YD(Byte[] C, Int32 D, Int32 L)
   at Rebex.Net.TlsSocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at Rebex.Net.TSL.MH(Byte[] C, Int32 D, Int32 L)
   at Rebex.Net.Smtp.UV(String C, String D)
   at Rebex.Net.Smtp.PQ()

Any inputs from Rebex team is really appreciated ...

Regards
Santosh M G

Applies to: Rebex Secure Mail
by (1.7k points)
Hello Santosh,

I am sorry, but we cannot find any valid support contract assigned to your e-mail address.
Could you please provide us any licensing information to e-mail address: sales@rebex.net?

Thank you!

1 Answer

0 votes
by (144k points)

There is no way to enable Rebex debug logs without code changes unless the application that uses Rebex libraries has been designed to make this possible. We believe it is the responsibility of application developers to add such capability to their applications if desired.

However, in order to tell what is going on in this case, a debug log showing the error in context of SMTP communication would indeed be helpful. It looks like the server closed the connection because of inactivity, but the context would make it possible to tell for sure.

by (270 points)
Thanks Lukas for reverting back on this thread.. I will get back with Debug logs...
...