CLI tool that uses the Unity Connection CUPI API to generate mailbox PIN expiration reports and send out PIN expiration warning emails via SMTP
You can either:
A) Download the ucxn-pin-reminder.zip
file containing the executable and email_assets folder from the latest release section.
OR
B) Run to the tool natively if you have Python installed.
- Clone the repository
git clone https://github.com/pdjohntony/ucxn-pin-reminder
- Install the python requirements
pip install -r requirements.txt
Open the config.ini
file and fill it out. Most importantly the UCXN server ip/fqdn, credentials, and the SMTP server, from/to addresses.
Optionally you can customize the end user and admin email templates in the email_assets
folder.
Usage: ucxn-pin-reminder.exe [OPTION]
Optional Arguments:
-n, -noemail generates report but does not send user or admin emails
-h, -help display this help and exit
config.ini example
[UNITY]
server = ucxn-1.xyz.com
username = admin
password =
[SMTP]
server = smtp.xyz.com
from_address = pin-reminder@xyz.com
# days to send expiration emails on, seperate by commas
email_intervals = 15,5,1,0
# admin email to receive PIN reports, seperate by commas
admin_email = admin@xyz.com
# specify your email file name located in the "email_assets" folder
# do not include file extension, you need both an html and txt version
# example:
# /email_assets/
# user_reminder_template.html
# user_reminder_template.txt
# config.ini line: user_reminder_email_file = user_reminder_template
admin_report_email_file = admin_report_template
user_reminder_email_file = user_reminder_template
# specify full file name with file extension for the email attachment, or none
user_reminder_attachment = Changing Your Voicemail PIN.docx
[DEBUG]
# 0 off, 1 on but prints only in log file, 2 on prints to console and log file
debug = 1
[LOGGING]
# the number of days to keep reports
retention_days = 14