简体   繁体   English

5.7.3客户端无权在Windows 7上向该服务器提交邮件

[英]5.7.3 Client does not have permission to submit mail to this server on windows 7

I used following code to send E-Mail using exchange server in a win form-application(.net 4 client profile): 我使用以下代码在win表单应用程序(.net 4客户端配置文件)中使用交换服务器发送电子邮件:

public void SendEmail(string From, 
                      string To, 
                      string Subject, 
                      string Body, 
                      string AttachmentFile)
{
   try
   {
      SmtpClient sMail = new SmtpClient("xs1.iasc.net");//exchange or smtp server goes here.
      var SMTPUserInfo = new System.Net.NetworkCredential("user", "pass");

      sMail.UseDefaultCredentials = false;
      sMail.Credentials = SMTPUserInfo;
      sMail.DeliveryMethod = SmtpDeliveryMethod.Network;

      var msg = new MailMessage();
      msg.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
      msg.IsBodyHtml = true;
      msg.From = new MailAddress(From);
      msg.To.Add(To);
      msg.Subject = Subject;
      msg.Body = Body;
      sMail.Send(msg);
    }
    catch (Exception ex)
    {
      MessageBox.Show(ex.Message);
    }
}

It works correctly in windows XP but when I run it on Windows 7, I get following error: 它在Windows XP中正常运行,但是在Windows 7上运行时,出现以下错误:

Client does not have permission to submit mail to this server. 客户端无权向该服务器提交邮件。 The server response was: 5.7.3 Client does not have permission to submit mail to this server. 服务器响应为:5.7.3客户端无权向该服务器提交邮件。

Any Idea? 任何想法?

The IP address of your windows 7 client is probably blocked in your Exchange - either in the receive connector or in the antispam IP blocklist. Windows 7客户端的IP地址可能已在Exchange中被阻止-在接收连接器或反垃圾邮件IP阻止列表中。

  1. Check the configuration of the Exchange "receive connector" in Exchange management console > server configuration > hub transport > properties of the (default) receive connector. 在Exchange管理控制台>服务器配置>集线器传输>(默认)接收连接器的属性中检查Exchange“接收连接器”的配置。 On the "network" tab check that the IP address of your windows 7 client is included in one the IP ranges for "remote addresses" down at the bottom of the tab. 在“网络”选项卡上,检查Windows 7客户端的IP地址是否包含在选项卡底部的“远程地址”的IP范围之一中。
  2. Remove the IP of the Win 7 computer from the IP block list under Exchange management console > server configuration > hub transport > Antispam (next to "receive connector tab" on the bottom half) > IP block list. 从Exchange管理控制台>服务器配置>集线器传输>反垃圾邮件(下半部分“接收连接器选项卡”旁边)> IP阻止列表下的IP阻止列表中删除Win 7计算机的IP。 You might want to add it to the IP allow list to be sure for the future. 您可能希望将其添加到IP允许列表中以确保将来使用。

By setting Local Security Setting to Send LM & NTLM -use NTLMv2 session security if negotiated. 通过将“ Local Security Setting为“ Send LM & NTLM -use NTLMv2 session security if negotiated. my problem solved: 我的问题解决了:

Control Panel>All Control Panel Items>Administrative Tools>Local Security Policy>Security Settings>Local Policies>Security Options>Network Security : LAN Manager Authentication Level

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SMTP错误:“客户端无权向此服务器提交邮件” - SMTP error: “Client does not have permission to submit mail to this server” smtp.live无法发送电子邮件-错误:邮箱不可用。 服务器响应为:5.7.3请求的操作中止; 用户未认证 - smtp.live Could not send the e-mail - error: Mailbox unavailable. The server response was: 5.7.3 Requested action aborted; user not authenticated WCF,客户端是否必须首先调用服务器? - WCF, does the Client have to call the Server first? 从代码发送电子邮件时,“5.7.1客户端没有权限”错误 - '5.7.1 Client does not have permission' error while sending email from code C# 错误:邮箱不可用。 客户端无权作为此发件人发送 - C# error: Mailbox unavailable. Client does not have permission to send as this sender 服务器响应为:5.7.3请求的操作中止; 用户未经过身份验证 - The server response was: 5.7.3 Requested action aborted; user not authenticated 在服务器上模拟Windows客户端 - Impersonating Windows Client on Server SqlException:用户无权执行此操作 - SqlException: User does not have permission to perform this action 用户没有对CreateEnvelopeFromTemplates方法的权限 - User does not have the permission to the CreateEnvelopeFromTemplates method 如何从Windows Mail服务器在asp.net中发送邮件 - How to send Mail in asp.net from windows mail server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM