Skip to content

Commit

Permalink
Change notication to notification
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiephie authored Nov 19, 2021
1 parent e0c9939 commit 9d65a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DOCUMENTS/Password_Expiration.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ do
QUERY="SELECT username,password_expiry FROM mailbox WHERE password_expiry > now() + interval $LOWER DAY AND password_expiry < NOW() + interval $INTERVAL DAY"

mysql --defaults-extra-file="$MYSQL_CREDENTIALS_FILE" "$POSTFIX_DB" -B -N -e "$QUERY" | while IFS=$'\t' read -a RESULT ; do
echo -e "Dear User, \n Your password will expire on ${RESULT[1]}" | mail -s "Password $INTERVAL days before expiration notication" -r $REPLY_ADDRESS ${RESULT[0]}
echo -e "Dear User, \n Your password will expire on ${RESULT[1]}" | mail -s "Password $INTERVAL days before expiration notification" -r $REPLY_ADDRESS ${RESULT[0]}
done
done

Expand Down

0 comments on commit 9d65a50

Please sign in to comment.