How to grep a mail log to see if a message bounced

Rate this:
By JV (Contact - View My Woyano)
Published Thu 15 Feb 2007, 1106 Views, 2 Comments

Command:

tail /var/log/maillog -n10000 | grep "user@example.com"

Notes:
  • Better to tail than cat (in case its a big log)
  • -n10000 is going back 10000 lines
  • Add -f if you want to see a live feed of the log
    • tail -f /var/log/maillog | grep "user@example.com"


This Item
Category: Knowledge, Snippets, Technology
Tags: unix, search, grep, mail
Share it
Link to this item:
Bookmark this item: RSS Feed

People who liked this item

    2 Comments

  1.  
    tradertom.net ~ 12 months ago
    0 votes thumbs up thumbs down
    you lost me
    [ reply ]
    1.  
      Loves Bloc Party ~ 12 months ago
      0 votes thumbs up thumbs down
      interesting, though i dont understand :(
      [ reply ]
      1.  
        22 votes thumbs up thumbs down
        This is my two cents...

           
        Hey you know AdGuy always gets the last word! ;)

      Please Login to Add Your Comment   ..or..  

      Replying to comment by