Results 1 to 7 of 7

Thread: Zmmsgtrace replacement?

  1. #1
    Join Date
    Dec 2009
    Posts
    9
    Rep Power
    6

    Unhappy Zmmsgtrace replacement?

    Having been a Postfix email server admin for years, I was very excited when I first heard about Zimbra's zmmsgtrace command and its ability to trace messages that have passed through the system. Then, I read from Logger (ZCS 6.0.x and later) - Zimbra :: Wiki some disheartening news:

    zmmsgtrace has been removed with no plan for a replacement.
    Before I go back to greping through the Postfix/Zimbra logs, I wanted to post this question to the Zimbra community: does anyone know of a utility that can trace down messages like zmmsgtrace used to? I've read that some smart Perl people have made a class for tracing an email through the mailsystem logs over at Mail::Log::Trace - search.cpan.org but I haven't seen any code utilizing these modules (and Perl is one of the few languages that I have absolutely no experience with or otherwise I'd whip something up). I know its a long shot, but I know I'm not the only person missing the functionality provided by zmmsgtrace. Thanks in advance.

  2. #2
    Join Date
    Apr 2009
    Location
    Canada
    Posts
    3
    Rep Power
    6

    Default

    As said by kinux : "I was very excited when I first heard about Zimbra's zmmsgtrace command and its ability to trace messages that have passed through the system."

    Yes indeed, the zmmsgtrace was VERY usefull...
    There is no alternatives?? ...really!

    Of course we can scan the maillog, but it is time consuming.

    Please help us admins!

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by BLuesTime View Post
    Of course we can scan the maillog, but it is time consuming.
    That's what you'll have to do as there is no replacement for zmmsgtrace or you could write a script to use this: Daniel T. Staal / Mail-Log-Trace - search.cpan.org & http://www.cpan.org/modules/by-modul...-1.0101.readme
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Join Date
    Dec 2009
    Posts
    9
    Rep Power
    6

    Unhappy Perl looked promising...

    Thank you Phoenix, that's about what I expected after wasting a considerable amount of time searching for a solution. In case anyone feels adventurous enough to try their hand at using the above mentioned Perl modules, 2 things: first, good luck and post your results if you figure it out! Secondly, I tried on two systems (Ubuntu 9.10 + Perl 5.10.0 and Redhat 5.4 + Perl 5.8.8) to use these modules without any luck. After getting past the actual install of this module and its dependencies (the ultra-reliable 'perl -MCPAN -e 'install module' failed on both systems so I had to manually download and install), the test code I prepared didn't return any errors, but it also couldn't trace any message despite using almost every conceivable combination of search terms.

    I apologize if this is a little off topic for a Zimbra forum, but I feel like zmmsgtrace was a great weapon for any email admin's arsenal and a large portion of the Zimbra community would rejoice if an alternative could be found. Just my 2¢.

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by kinux View Post
    I apologize if this is a little off topic for a Zimbra forum, but I feel like zmmsgtrace was a great weapon for any email admin's arsenal and a large portion of the Zimbra community would rejoice if an alternative could be found. Just my 2¢.
    You could always vote on the RFEs for a replacement in bugzilla.

    BTW, the 'community' could always produce it's own replacement for zmmsgtrace.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    Default

    A request has been logged to bugzilla. You might consider voting for it!

    https://bugzilla.zimbra.com/show_bug.cgi?id=41078

  7. #7
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    291
    Rep Power
    10

    Default

    To resurrect this thread, I found a command line tool that works for me that might be useful...
    The steps I used to do on ubuntu to get it working:
    wget http://taz.net.au/postfix/scripts/mailgrep.pl
    wget http://taz.net.au/postfix/scripts/openlogfile.pl
    apt-get install libfile-mmagic-perl
    chmod +x mailgrep.pl

    and then
    ./mailgrep.pl -s pattern
    where pattern is what you want to search for..
    it uses /var/log/mail.log by default, but you can search /var/log/mail.log.0 or others by passing them in as the last argument.
    Its a little more useful than plain grep, as it matches the mail as it flows through amavis and the ID gets changed.
    http://www.solutionsfirst.com.au/hosting/zimbra/
    Australia's premier Zimbra Hosting Partner
    Resellers wanted!

Similar Threads

  1. zmmsgtrace
    By rajeshkodali in forum Administrators
    Replies: 3
    Last Post: 07-24-2009, 07:15 AM
  2. zmmsgtrace gone in GnR?
    By ewilen in forum Administrators
    Replies: 3
    Last Post: 05-05-2009, 01:40 AM
  3. Zmmsgtrace - sql execute failed - error in SQL syntax
    By Edmund in forum Administrators
    Replies: 2
    Last Post: 03-19-2008, 02:04 PM
  4. Zimbra Desktop Replacement Icon
    By zeusbox in forum General Questions
    Replies: 5
    Last Post: 03-06-2008, 06:06 AM
  5. zmmsgtrace not working
    By Alfspace in forum Administrators
    Replies: 11
    Last Post: 03-02-2006, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •