Checkforwading
Appearance
vi checkforward.sh
- !/bin/sh
- Script para visualizar redirecciones en Zimbra
for account in `zmprov -l gaa`; do forwardingaddress=`zmprov ga $account |grep 'zimbraPrefMailForwardingAddress' |sed 's/zimbraPrefMailForwardingAddress: //'` if [ "$forwardingaddress" != "" ]; then echo "$account is forwarding to $forwardingaddress" else forwardingaddress="" fi done
chown zimbra:zimbra checkforward.sh
chmod +x checkforward.sh