Sistemas‎ > ‎Linux‎ > ‎Scripts Linux‎ > ‎Zimbra‎ > ‎

listAllMailForwarding.sh

#!/bin/bash

echo "" > /tmp/allMailForwarding.txt
for a in `zmprov -l gaa`
do
  zmprov ga $a zimbraPrefMailForwardingAddress >> /tmp/allMailForwarding.txt
done

cat /tmp/allMailForwarding.txt | grep -B1 zimbraPrefMailForwardingAddress > /tmp/allMailForwarding2.txt
Comments