User Tools

Site Tools


internet:mail:zimbra:zimbra_password_policy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
internet:mail:zimbra:zimbra_password_policy [2019/08/07 10:06]
gcooper
internet:mail:zimbra:zimbra_password_policy [2022/03/30 08:55] (current)
gcooper
Line 70: Line 70:
 ===== Expiring Passwords Notification ===== ===== Expiring Passwords Notification =====
  
-https://github.com/wuxmedia/Zimbra_passpoll+**Original**: https://github.com/wuxmedia/Zimbra_passpoll
  
 <file> <file>
Line 102: Line 102:
 </file> </file>
  
-==== passpoll.sh ====+==== Modified passpoll.sh ==== 
 + 
 +This script has been **modified from the original** in several ways, including: 
 + 
 +  * **Number of user notifications** 
 +    * Four including final on last day 
 +  * **Content of user notifications** 
 +    * Instructions to change password 
 +    * Zimbra URL 
 +  * **Content of admin notifications** 
 +    * Include log 
 +  * **Daily expired password notifications**
  
 <file> <file>
Line 110: Line 121:
 # Meant to be performed as daily cronjob run as zimbra user. # Meant to be performed as daily cronjob run as zimbra user.
 # redirect output to a file to get a 'log file' of sorts. # redirect output to a file to get a 'log file' of sorts.
 +
 +# Start in tmp folder to eliminate permissions warnings
 +cd /tmp
  
 # Time taken of script; # Time taken of script;
Line 120: Line 134:
 LAST="3" LAST="3"
 # Sent from: # Sent from:
-FROM="admin@virtualarchitects.com"+FROM="admin@yourdomain.tld"
 # Domain to check, e.g. 'example.com'; leave blank for all # Domain to check, e.g. 'example.com'; leave blank for all
-DOMAIN=+DOMAIN=""
 # Recipient who should receive an email with all expired accounts # Recipient who should receive an email with all expired accounts
-ADMIN_RECIPIENT="admin@virtualarchitects.com"+ADMIN_RECIPIENT="admin@yourdomain.tld"
 # URL for your Zimbra in message body # URL for your Zimbra in message body
-URL=https://zimbra.virtualarchitects.com+URL="https://zimbra.yourdomain.tld"
  
 # Sendmail executable # Sendmail executable
-# Uncomment line corresponding to your ZCS version 
-#Before ZCS 8.9 
-#SENDMAIL=$(ionice -c3 find /opt/zimbra/postfix* -type f -iname sendmail) 
-#From ZCS 8.9 
 SENDMAIL=$(ionice -c3 find /opt/zimbra/common/sbin -type f -iname sendmail) SENDMAIL=$(ionice -c3 find /opt/zimbra/common/sbin -type f -iname sendmail)
  
 # Get all users - it should run once only. # Get all users - it should run once only.
-USERS=$(ionice -c3 /opt/zimbra/bin/zmprov -l gaa $DOMAIN)+USERS=$(ionice -c3 /opt/zimbra/bin/zmprov -l gaa $DOMAIN | egrep -v "spam\.|ham\.|galsync\.|galsync\@|virus-quarantine")
  
 #Todays date, in seconds: #Todays date, in seconds:
Line 176: Line 186:
  
 Thanks, Thanks,
-VA Admin Team+Your Zimbra Admin Team
  
 " "
Line 230: Line 240:
 $(echo -e "$EXP_LIST2") $(echo -e "$EXP_LIST2")
  
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  
 Log file: Log file:
internet/mail/zimbra/zimbra_password_policy.1565193989.txt.gz · Last modified: 2019/08/07 10:06 by gcooper