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
  #1 (permalink)  
Old 06-02-2009, 03:22 AM
Junior Member
 
Posts: 9
Default Check if a user sent an email 6 weeks ago

Hi All

If I wanted to check if a user sent an email 6 weeks ago, what log file would I check?
Reply With Quote
  #2 (permalink)  
Old 06-02-2009, 04:28 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

That assumes you still have the log files: Log Files - Zimbra :: Wiki
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-02-2009, 06:38 AM
Junior Member
 
Posts: 9
Default

thanks for the link

/var/log/zimbra.log only has log for todays date 2nd June

I am still not able to find an email that the user sent 6 weeks ago. Am I looking in the right log file?
Reply With Quote
  #4 (permalink)  
Old 06-02-2009, 07:01 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

You should find a set of rotated log files in the same that may contain the date.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-02-2009, 02:26 PM
Junior Member
 
Posts: 9
Default

Hi phoenix

I appreciate the help but if you are going to give help can you please explain in Lehmanns terms what needs to be done. I cannot fix the problem and decipher your reply.
Reply With Quote
  #6 (permalink)  
Old 06-02-2009, 07:28 PM
Elite Member
 
Posts: 296
Default

you should check the log rotatation rule from :
1. /etc/logrotate.conf
2. su - zimbra ; crontab -e 5th/6th lines (zimbra user's crontab)

if you didn't change these setting, I guess you are not able to find the logs 6 weeks ago.


by the way, you can check /opt/zimbra/log/mailbox.log* files, when someone sent an email, you can get a record by doing a grep search:

grep "Sending message" mailbox.log*
Reply With Quote
  #7 (permalink)  
Old 06-03-2009, 12:27 AM
Junior Member
 
Posts: 9
Default

Okay, I changed the log rotation to 10 weeks.

I have checked mailbox.log, no luck, nutta.

I am not sure what to do with this:
2. su - zimbra ; crontab -e 5th/6th lines (zimbra user's crontab)


Thanks for the help
Reply With Quote
  #8 (permalink)  
Old 06-03-2009, 12:37 AM
Elite Member
 
Posts: 296
Default

> 2. su - zimbra ; crontab -e 5th/6th lines (zimbra user's crontab)


which means :
su - zimbra
crontab -e (and looks for 5th and 6th lines)

they're :
Quote:
30 2 * * * find /opt/zimbra/log/ -type f -name \*.log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
35 2 * * * find /opt/zimbra/log/ -type f -name \*.out.???????????? -mtime +8 -exec rm {} \; > /dev/null 2>&1
see ? by default, it will just keep your /opt/zimbra/log/ files for recent 8 days.

Change the "8" to what you want.

hope you can get the log next time.
Reply With Quote
  #9 (permalink)  
Old 06-03-2009, 12:47 AM
Junior Member
 
Posts: 9
Default

Thanks, I have changed the value in that line from 8 to 60. This should help in the future.

As for now, I really need to see if that user sent that email 6 weeks ago.

I have tried to restore the users account so that I can see if he sent the email in hos sent items. The problem is that every time I do a restore on the users accoutn, I do it "to a point in time" I used the date 27 April. The problem is that when this user account is restored it show email up to may 29? Why does it do this? I thought it would only restore mail up to 27 April and not go into May. I have done this several time to no avail. Am I doing something wrong?


All help appreciated.
Reply With Quote
  #10 (permalink)  
Old 06-03-2009, 08:52 AM
Elite Member
 
Posts: 336
Default

Are you restoring on top of the user's existing account? Try restoring to a "new" account. I think it offers to append the restored account's name to "restore_username".
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.