Question:
Can an automatic Mail be send after a finished userimport?
Answer:
Using the self-service invitation service an automatic email is send after user creation.
Therefor you need to install the self-service app and have to (re)enable this service.
In UCS, when a user is created with Locked Login applied (a set PasswordRecoveryEmail and pwdChangeNextLogin=1) the listener module selfservice-invitation.py in cooperation with a daemon will send an invitation email to the user.
In UCS@school this automatism is most likely not desired.
The self service invitation is controlled by the UCR-variable umc/self-service/invitation/enabled, which is set to false by default on UCS@school systems. This feature is controlled by the UDM policy send_self_…
Requirements:
ucr Variable umc/self-service/invitation/enabled is set true
user has to be created with a set PasswordRecoveryEmail and pwdChangeNextLogin=1
Also interesting:
Adjust the mail subject:
Can I customize the subject of the self service password reset mail
Question
Can I customize the subject of the self service password reset mail?
Answer
Yes, but as far as the feature request 53227 is not fixed, not update-safe and only by code customization.
You need to edit line 114 of /usr/lib/python2.7/dist-packages/univention/management/console/modules/passwordreset/sending/send_email.py to:
msg["Subject"] = "My own password-reset subject"
Troubleshooting if the mail is not send:
Problem
UCS offers to create new users and send them an invitation email, if the Self-Service App is installed. This way, the Administrator does not need to know about the initial password of the users, but instead a random password is set and the users get an email with a token and the reqeust to set a new password on their own.
It might happen that you use this option, but the users receive no such email. The reasons might be quite diverse, but this article should help to track this down.
In…