Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Check if a user sent an email 6 weeks ago

  1. #1
    wazza is offline Junior Member
    Join Date
    Aug 2006
    Posts
    9
    Rep Power
    8

    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?

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    wazza is offline Junior Member
    Join Date
    Aug 2006
    Posts
    9
    Rep Power
    8

    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?

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    wazza is offline Junior Member
    Join Date
    Aug 2006
    Posts
    9
    Rep Power
    8

    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.

  6. #6
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    7

    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*

  7. #7
    wazza is offline Junior Member
    Join Date
    Aug 2006
    Posts
    9
    Rep Power
    8

    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

  8. #8
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    7

    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 :
    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.

  9. #9
    wazza is offline Junior Member
    Join Date
    Aug 2006
    Posts
    9
    Rep Power
    8

    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.

  10. #10
    Jbrabander's Avatar
    Jbrabander is offline Elite Member
    Join Date
    May 2008
    Location
    Park City, KS
    Posts
    342
    Rep Power
    7

    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".

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. force Webmail user to send email with "smtp auth"
    By bonadio in forum Developers
    Replies: 11
    Last Post: 01-26-2012, 10:26 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Not receiving from given domain
    By jrefl5 in forum Administrators
    Replies: 19
    Last Post: 02-29-2008, 11:45 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 03:08 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
  •