Gmail IMAP Throttling?



我们的应用程序需要从Gmail发送文件夹中获取电子邮件主题,发件人,收件人等。它在几个月前工作得很好,但是它突然开始出问题了。我们正在使用AE.Net.Mail创建ImapClient

新ImapClient (" imap.gmail.com ","n/a",() => GmailSaslRequestBuilder。构建(电子邮件、this._authenticator.GetAccessToken ()),ImapClient.AuthMethods.XOAUTH2,993年,真正);

这是我得到的错误信息,我想知道我们是否得到了节流以及如何解决这个问题,或者还有什么可能是问题?

System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host<newline>   
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)<newline>   
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)<newline>   --- End of inner exception stack trace ---<newline>   
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)<newline>   
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)<newline>   
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)<newline>   
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)<newline>   
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)<newline>   
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)<newline>   
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)<newline>   
at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)<newline>   
at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost)<newline>   
at AE.Net.Mail.TextClient.Connect(String hostname, Int32 port, Boolean ssl)<newline>   
at AE.Net.Mail.ImapClient..ctor(String host, String username, Func`1 getPassword, AuthMethods method, Int32 port, Boolean secure)<newline>  

因为我没有50点的东西,所以我不能评论你的问题,所以我将把我的评论写在一个回答表格中,你可以在下面评论。

无论如何,你的错误开始"System.Net.Sockets。"SocketException:一个已存在的连接被远程主机强制关闭"通常是由服务器上的MX设置引起的。我将首先检查您的MX记录验证。

但是如果这不是问题,请在下面评论,然后我可以评论

相关内容

  • 没有找到相关文章

最新更新