1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Howto trace a mail message ?

Discussion in 'Plesk for Linux - 8.x and Older' started by fgilain, Mar 28, 2007.

  1. fgilain

    fgilain Guest

    0
     
    Hello all,

    I would like to know how i could "trace" a specific message.

    My goal is to follow what happens when i send an email or when one of my application servers send an email to someone for debugging mail sending.

    the reason is that few mails seems to never arrive....

    I ran the tail -f /usr/local/psa/var/log/maillog command, but logs are so fast to grow, i'm a little lost into it....

    thanks

    Florent
     
  2. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    You can pipe the output into grep to filter for specific things like subject, sender, recipient, etc.
     
  3. JDwebsites

    JDwebsites Guest

    0
     
    cat /usr/local/psa/var/log/maillog | grep replaceyourinfo

    replace replaceyourinfo with whatever you what to search for

    Dean
     
  4. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    Yeah, but if you want a 'live' view you'd better use tail with grep.
     
  5. JDwebsites

    JDwebsites Guest

    0
     
    True.

    tail -f /usr/local/psa/var/log/maillog | grep replaceyourinfo

    replace replaceyourinfo with whatever you what to search for

    Dean
     
Loading...