Skip to content

notify zimbra users when a new mobile device is registered on their account

Notifications You must be signed in to change notification settings

stsimb/zimbra-mobile-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

zimbra-mobile-check

notify zimbra users when a new mobile device is registered on their account

Intro

Somebody suggested that we should notify our Zimbra users when a new mobile device is registered on their account, as a security warning.

We use ZeXtras for mobile sync, that produces a log under /opt/zimbra/log/sync.log.

This script parses the logfile and sends email notifications to users. It also records on a local logfile.

Usage

Copy the script on all your Zimbra mailbox server(s) and execute via crontab every minute (or any interval you like).

* * * * * /path/to/mobile-check.sh

Check the results in /path/to/log

[zimbra@zm-mbox-01 mobile-check]$ cat log 
Fri Jan 17 14:00:15 EET 2014 First login from iPad/ApplDLXFKTB0DFJ3, creating new device database for [email protected]
Fri Jan 17 14:00:38 EET 2014 First login from iPhone/ApplDNPLR1DGFFGD, adding to device database for [email protected]
Fri Jan 17 21:03:01 EET 2014 First login from Android/androidc897091636, creating new device database for [email protected]
Fri Jan 17 21:05:01 EET 2014 First login from Android/361ecccca7c339ad9a644b4852be3804, adding to device database for [email protected]

If you want to "reset" some particular user rm -f /path/to/db/[email protected]

If you want to "reset" the entire database and start from the beginning rm -rf /path/to/db/

Prerequisites

Notes

Tested with Zimbra 8.0.x and ZeXtras 1.8.12.

http:https://forums.zextras.com/zxmobile/827-notify-users-when-new-mobile-device-registered.html

About

notify zimbra users when a new mobile device is registered on their account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages