Anonymous client does not have permissions to send as this sender
时间: 2024-06-14 08:03:18 浏览: 16
匿名客户端没有权限作为此发件人发送邮件的原因可能是因为缺少相应的权限。可以通过以下步骤解决此问题:
1. 确认匿名客户端是否已被授予发送邮件的权限。
2. 如果未授予权限,请使用管理员帐户登录Exchange服务器。
3. 打开Exchange管理控制台并导航到“收件连接器”。
4. 选择Internet-facing收件连接器并单击“编辑”。
5. 在“权限”选项卡上,确保“NTAuthority\Anonymous Logon”帐户具有“ms-exch-smtp-accept-authoritative-domain-sender”权限。
6. 如果未授予权限,请使用以下命令从Internet-facing收件连接器中删除权限:
```powershell
Get-ReceiveConnector "Internet Receive Connector" | Remove-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Authoritative-Domain-Sender"
```
7. 重新启动Exchange传输服务并尝试发送邮件。
相关问题
The ZOO_ENABLE_AUTH environment variable does not configure authentication. Set the environment variable ALLOW_ANONYMOUS_LOGIN=yes to allow unauthenticated users to connect to ZooKeeper.
这个错误是因为你设置了 `ZOO_ENABLE_AUTH` 环境变量,但是没有进行认证配置,导致出现了错误。如果你需要使用认证功能,需要在 `zoo.cfg` 文件中进行相应的配置。具体操作如下:
1. 在 `zoo.cfg` 文件中添加以下内容:
```
authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
requireClientAuthScheme=sasl
jaasLoginRenew=3600000
```
2. 创建 `zookeeper_jaas.conf` 文件,添加以下内容:
```
Server {
org.apache.zookeeper.server.auth.DigestLoginModule required
user_admin="admin-password"
user_user1="user1-password";
};
```
其中,`user_admin` 和 `user_user1` 是需要进行认证的用户名,`admin-password` 和 `user1-password` 是对应的密码。
3. 在启动 ZooKeeper 时,添加 `-Djava.security.auth.login.config=/path/to/zookeeper_jaas.conf` 参数,指定 JAAS 配置文件的路径。
如果你不需要使用认证功能,可以设置 `ALLOW_ANONYMOUS_LOGIN=yes` 环境变量来允许未认证的用户连接到 ZooKeeper。
this subject is anonymous - it does not have any identifying principals and authorization operations require an identity to check against. a subject instance will acquire these identifying principals automatically after a successful login is performed be executing org.apache.shiro.subject.subject.login(authenticationtoken) or when 'remember me' functionality is enabled by the securitymanager. this exception can also occur when a previously logged-in subject has logged out which makes it anonymous again. because an identity is currently not known due to any of these conditions, authorization is denied.
这个主题是匿名的 - 它没有任何识别原则,授权操作需要一个身份来进行检查。主题实例将在执行org.apache.shiro.subject.subject.login(authenticationtoken)成功登录或安全管理器启用“记住我”功能后自动获取这些识别原则。当先前已登录的主题注销时,也可能发生此异常,从而使其变为匿名状态。由于当前由于这些条件之一而未知身份,因此授权被拒绝。