listLastLogon.sh

#!/bin/bash

echo "" > /tmp/allMailLastLogon.txt

for a in `/opt/zimbra/bin/zmprov -l gaa`

do

/opt/zimbra/bin/zmprov ga $a zimbraLastLogonTimestamp >> /tmp/allMailLastLogon.txt

done