Gmail IMAP节流?

Gmail IMAP节流?,gmail,gmail-imap,throttling,Gmail,Gmail Imap,Throttling,我们的应用程序需要从Gmail Sent文件夹中获取电子邮件主题、发件人、收件人等。几个月来,它一直运转良好,但突然开始出现问题。我们正在使用AE.Net.Mail创建ImapClient 新的ImapClient(“imap.gmail.com”, “不适用”, ()=>GmailSaslRequestBuilder.Build(电子邮件,this.\u authenticator.GetAccessToken()), ImapClient.AuthMethods.XOAUTH2, 993,

我们的应用程序需要从Gmail Sent文件夹中获取电子邮件主题、发件人、收件人等。几个月来,它一直运转良好,但突然开始出现问题。我们正在使用AE.Net.Mail创建ImapClient

新的ImapClient(“imap.gmail.com”, “不适用”, ()=>GmailSaslRequestBuilder.Build(电子邮件,this.\u 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>  
System.IO.IOException:无法从传输连接读取数据:远程主机强制关闭了现有连接。-->System.Net.Sockets.SocketException:远程主机强制关闭了现有连接
位于System.Net.Sockets.Socket.Receive(字节[]缓冲区、Int32偏移量、Int32大小、SocketFlags和SocketFlags)
在System.Net.Sockets.NetworkStream.Read(字节[]缓冲区,Int32偏移量,Int32大小)----内部异常堆栈跟踪的末尾--
位于System.Net.Sockets.NetworkStream.Read(字节[]缓冲区,Int32偏移量,Int32大小)
位于System.Net.FixedSizeReader.ReadPacket(字节[]缓冲区,Int32偏移量,Int32计数)
位于System.Net.Security.SslState.StartReceiveBlob(字节[]缓冲区,AsyncProtocolRequest asyncRequest)
在System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken消息,AsyncProtocolRequest asyncRequest)
位于System.Net.Security.SslState.StartSendBlob(字节[]传入,Int32计数,AsyncProtocolRequest asyncRequest)
位于System.Net.Security.SslState.ForceAuthentication(布尔值receiveFirst,字节[]缓冲区,AsyncProtocolRequest asyncRequest)
在System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult-lazyResult)上
位于System.Net.Security.SslStream.AuthenticateTasClient(字符串targetHost、X509CertificateCollection客户端证书、启用SslProtocols的SslProtocols、布尔检查证书调用)
位于System.Net.Security.SslStream.AuthenticateTasClient(字符串targetHost)
在AE.Net.Mail.TextClient.Connect(字符串主机名、Int32端口、布尔ssl)
在AE.Net.Mail.ImapClient..ctor(字符串主机、字符串用户名、Func`1 getPassword、AuthMethods方法、Int32端口、布尔安全)

因为我没有50点的东西,所以我不能对你的问题发表评论,所以我会把我的评论写在答题表中,你可以在下面发表评论

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


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

套接字被强制关闭,而布满名为“Authenticate”的例程的跟踪将使我第一次猜测身份验证失败。你为什么怀疑节流?