Quantcast
Channel: Zimbra Forums
Viewing all articles
Browse latest Browse all 738

Administrators • Re: how to list all Forwarding email address in zimbra using command?

$
0
0
add /opt/zimbra/bin/ before zmprov command and it will run from root (just wait)

Code:

#!/bin/shfor account in `/opt/zimbra/bin/zmprov -l gaa`; doforwardingaddress=`/opt/zimbra/bin/zmprov ga $account |grep 'zimbraPrefMailForwardingAddress' |sed 's/zimbraPrefMailForwardingAddress: //'`if [ "$forwardingaddress" != "" ]; thenecho "$account is forwarded to $forwardingaddress"elseforwardingaddress=""fidone
I hope it helps

Statistics: Posted by RBarci — Thu Aug 08, 2024 1:46 pm



Viewing all articles
Browse latest Browse all 738

Trending Articles