Jump to content

Checkforwading

From TetraWiki
Revision as of 11:23, 16 July 2020 by Vinod (talk | contribs) (EMAIL FORWARDING LIST AND GROUP AND MEMBER LIST)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

vi checkforward.sh

  1. !/bin/sh
  2. 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