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
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
However the older logs are compressed, which requires more effort:Code:grep user@domain.com /var/log/zimbra.log | more
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 02:31 PM.
Excellent just what I needed! Thank you very much Linux2012![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)