Results 1 to 3 of 3

Thread: How to search logs for an email address

  1. #1
    yonatan is offline Special Member
    Join Date
    May 2010
    Posts
    171
    Rep Power
    5

    Exclamation How to search logs for an email address

    I've got a bit of a "situation" and I need to search the logs on my Zimbra server to see if mail has been sent or received from a particular email address.

    Can someone please show me the command(s) necessary.

    Thanks

  2. #2
    Linux2012 is offline Starter Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    3

    Default

    Quote Originally Posted by yonatan View Post
    I've got a bit of a "situation" and I need to search the logs on my Zimbra server to see if mail has been sent or received from a particular email address.

    Can someone please show me the command(s) necessary.

    Thanks
    To search the most recent log
    Code:
    grep user@domain.com /var/log/zimbra.log | more
    However the older logs are compressed, which requires more effort:
    Code:
    for i in /var/log/zimbra.log.*.gz ; do gunzip -c $i | grep user@domain.com | more; done;

    You can vary this a bit and find just the "to" address using...
    Code:
    for i in /var/log/zimbra.log.*.gz ; do gunzip -c $i | grep "to=<user@domain.com>" | more; done;
    Last edited by Linux2012; 12-08-2011 at 03:31 PM.

  3. #3
    yonatan is offline Special Member
    Join Date
    May 2010
    Posts
    171
    Rep Power
    5

    Default

    Excellent just what I needed! Thank you very much Linux2012

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Separate email address from LDAP username?
    By mattengland in forum Administrators
    Replies: 2
    Last Post: 11-10-2010, 04:06 PM
  2. How to search Shared Address Books?
    By zzzzsg in forum Administrators
    Replies: 1
    Last Post: 09-30-2009, 10:57 AM
  3. Cannot add email address to Distribution list
    By cirrus_blue in forum Users
    Replies: 1
    Last Post: 08-02-2007, 11:32 PM
  4. Different login authentication and email address: how to?
    By trapanator in forum Administrators
    Replies: 1
    Last Post: 10-19-2006, 01:09 AM
  5. Replies: 1
    Last Post: 09-10-2005, 09:47 AM

Posting Permissions

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