Loading... 进入 su zimbra 首先关闭tls的验证 ```bash zmprov modifyServer zimbra.domain.com zimbraMtaTlsAuthOnly TRUE ``` 然后开启验证 ```bash zmprov mcf zimbraMtaSmtpdSenderLoginMaps proxy:ldap:/opt/zimbra/conf/ldap-slm.cf +zimbraMtaSmtpdSenderRestrictions reject_authenticated_sender_login_mismatch ``` 编辑文件`smtpd_sender_restrictions` 您需要编辑文件`opt / zimbra / conf / zmconfigd / smtpd_sender_restrictions.cf`并在`permit_mynetworks`之后添加行`reject_sender_login_mismatch` ``` vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf ``` 应该是这样的 ``` permit_mynetworks,reject_sender_login_mismatch ``` 一分钟后,`zmconfigd`将自动更新后缀配置并应用新规则。 可以选择手动重启配置 `zmconfigdctl restart` 使用SMTP测试 如果要使用Telnet和SMTP对其进行测试,请执行以下步骤: ```bash Macbook:~ user$ telnet mail.example.com 25 Trying mail.example.com... Connected to mail.example.com. Escape character is '^]'. 220 mail.example.com ESMTP Postfix ehlo mail.example.com 250-mail.example.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from: admin@example.com 250 2.1.0 Ok rcpt to: admin@example.com 553 5.7.1 <admin@example.com>: Sender address rejected: not logged in ``` Last modification:August 19, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏