OpenDS - SMTP 帐户状态通知处理程序

发布于 2024-11-16 09:50:21 字数 335 浏览 5 评论 0原文

在这里没有看到很多与 opens 相关的帖子,但我想值得一试。

我正在尝试配置我的服务器以使用 SMTP 帐户状态通知处理程序向用户发送有关帐户详细信息(例如帐户已禁用、密码即将过期等)的电子邮件。我按照他们的文档中的说明进行操作(显然包括启用处理程序),但我没有收到任何电子邮件。我已经在“常规配置”部分验证了 SMTP 地址是否正确,并且我可以通过该计算机上的 telnet 手动连接到 SMTP,因此我知道该部分正在工作。但没有发送电子邮件(仔细检查垃圾邮件文件夹并检查邮件服务器日志),并且我在 opends 的错误日志中没有收到任何信息,它似乎没有做任何事情。我觉得我一定错过了一些愚蠢的东西,有什么想法吗?

谢谢

Haven't seen a lot of posts on here related to opends but its worth a shot I guess.

I am trying to configure my server to use the SMTP Account Status Notification Handler to email users on account specifics (e.g. account disabled, password expiring soon, etc). I followed the directions in their documentation to the letter (including obviously enabling the handler) but I get no emails sent out. I've verified that the SMTP address is correct in the General Configuration section and I can manually connect to SMTP via telnet on that machine so I know that part is working. But no email is sent (double-checked spam folders and examined the mail server logs) and I'm getting nothing in the error logs for opends, it just doesn't seem to be doing anything. I feel like I must be missing something stupid, any ideas?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北陌 2024-11-23 09:50:22

要使用 OpenDS 或 OpenDJ 接收帐户状态通知,需要做两件事。
首先,您需要配置 SMTP 帐户状态通知处理程序,这就是您所做的。
第二件事是您必须将通知处理程序附加到密码策略,最有可能附加到默认情况下适用于所有用户(但根 DN)的默认密码策略。

$ dsconfig -h localhost -p 4444 -D "cn=directory manager" -w password -X -n \
  set-password-policy-prop --policy-name "Default Password Policy" \
  --add "account-status-notification-handler:SMTP Account Status Notification Handler"

将通知处理程序附加到密码策略的原因是,您可以针对不同人群(例如员工与客户)使用不同的处理程序。
这是经常被忽视的事情,当我第一次使用通知处理程序时,我就陷入了同样的陷阱。

亲切的问候,

卢多维奇·普瓦图
OpenDJ 产品经理,Java 中的开源目录服务
http://opendj.org

To receive Account status notifications with OpenDS or OpenDJ, 2 things are needed.
First you need to configure the SMTP Account Status Notification Handler, and that's what you've done.
The second thing is that you have to attach the Notification Handler to a Password Policy, most likely to the Default Password Policy that applies by default to all users (but Root DNs).

$ dsconfig -h localhost -p 4444 -D "cn=directory manager" -w password -X -n \
  set-password-policy-prop --policy-name "Default Password Policy" \
  --add "account-status-notification-handler:SMTP Account Status Notification Handler"

The reason for attaching the Notification Handler to a Password Policy, is that you can have different handlers for different populations, for example employee vs customers.
This is something that is too often overlooked, and I've fell in the same trap the first time I was playing with Notification Handlers.

Kind Regards,

Ludovic Poitou
Product Manager for OpenDJ, open source Directory services in Java
http://opendj.org

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文