开发者

OpenDS - SMTP Account Status Notification Handler

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 (incl开发者_开发百科uding 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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜