Email Log management

Discussion in 'Server Operation' started by perfectpol7, Mar 5, 2010.

  1. perfectpol7

    perfectpol7 New Member

    I need to trace/track email activity in my ubuntu server, normal i use this command tail -f /var/log/mail/mail.log, more or less. But the problem i am facing is that it take a long time to go through the entire log as my server recieves thousands of emails per day. is the a code that i can use to search email in the log, for instance need to find [email protected] in the mail log.

    Secondly; if there is an email that is blocking others on the queue how can it be remove or forced to go the mailbox. or to view its contents in order to decide whether to remove it or not.

    Had a problem that are said not arrival or that are delivered as late as a day and sometime 6hours.

    thanks for your assistance.
  2. falko

    falko Super Moderator ISPConfig Developer

    You can try this:
    tail -f /var/log/mail.log | grep [email protected]
  3. topdog

    topdog Active Member

    If you are running exim then you can use exigrep

Share This Page