Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 01-22-2009, 12:31 PM
Elite Member
 
Posts: 281
Default

Quote:
Originally Posted by rchinn View Post
This shell script should do what you're looking for. We have the same problem you do with bounced messages but I never thought to write a script to help with it. This works for me on 5.0.11:

Code:
#!/bin/bash

SEARCHSTRING="user@domain.tld"

for list in `zmprov gadl`
do
  results=`zmprov gdl $list | grep "Address" | cut -d " " -f 2 | grep "$SEARCHSTRING"`
  if [ ! -z $results ]
  then
    echo $list - $results
  fi
done
I tried this script and I get
Usage: grep [OPTION]... PATTERN [FILE]...
/path/filename: line 9: email@domain: command not found.

I am on 5.0.8

dj
Reply With Quote
  #12 (permalink)  
Old 01-22-2009, 12:37 PM
Active Member
 
Posts: 30
Default

The Zimbra version shouldn't matter here. Which OS are you running?
Reply With Quote
  #13 (permalink)  
Old 01-22-2009, 12:48 PM
Elite Member
 
Posts: 281
Default

Quote:
Originally Posted by rchinn View Post
The Zimbra version shouldn't matter here. Which OS are you running?
Fedora 7

dj
Reply With Quote
  #14 (permalink)  
Old 01-22-2009, 12:50 PM
Active Member
 
Posts: 30
Default

It should run fine on any Linux OS, really... if you want to PM me your script as is I may be able to see what's wrong. Maybe something's not escaped right? It runs fine on my RHEL5 boxes.
Reply With Quote
  #15 (permalink)  
Old 01-22-2009, 12:58 PM
Elite Member
 
Posts: 281
Default

Quote:
Originally Posted by rchinn View Post
It should run fine on any Linux OS, really... if you want to PM me your script as is I may be able to see what's wrong. Maybe something's not escaped right? It runs fine on my RHEL5 boxes.
OK. I sent it to you.

dj
Reply With Quote
  #16 (permalink)  
Old 01-22-2009, 01:08 PM
Elite Member
 
Posts: 281
Default

Quote:
Originally Posted by dljordaneku View Post
OK. I sent it to you.

dj
Ok. it's fixed. I had an extra line in the script. It's working like a charm. Thanks a bunch.

dj
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.