The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

keeping track of outgoing mails

Discussion in 'E-mail Discussions' started by kavitha, Jul 29, 2004.

  1. kavitha

    kavitha Member

    Joined:
    Jun 4, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I want to keep track of all the outgoing mails. So, whenever a person sends a mail that should reside in a particular email account. Is that possible in Cpanel if so how pls guide me.

    Regards,
    Kavitha
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Is there a way that you can set which domain on this server need to be tracked and instead of log into the /var/log/exim_mainlog stored the entire email to some email box ?
     
  4. kavitha

    kavitha Member

    Joined:
    Jun 4, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Mine is a shared linux server and i want to keep track of mails for only one particular account. For example one of my client is xyz.com and he has 6 email accounts and the people who are sending mails from those 6 email accounts should reach one email account like catch all account along with the people to whom he/she sending the mails. Can anyone pls guide me on this?
     
  5. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    a suggestion.. i dont think this is a solution..

    grep the domain xyz.com from the file /var/log/exim_maillog. It is easy. make the output from this grep to a file inside the users home and give it to him.

    tail -f /var/log/exim_maillog | grep xyz.com > log.xyz.mail.txt

    i havent tried it.. just a suggestion.
     
  6. kavitha

    kavitha Member

    Joined:
    Jun 4, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I didn't get this "make the output from this grep to a file inside the users home and give it to him". Am a new bie. Can you pls explain me detailly how to do this? Thanks in advance.
     
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    tail -f /var/log/exim_maillog | grep xyz.com > log.xyz.mail.txt

    isnt working for me either. but

    tail -f /var/log/exim_maillog | grep xyz.com

    this will give you an output of mail transcactions on this domain xyz.com

    All i can give you is an idea that if this output that you get can be piped into a file and made availabe at /home/xyz/public_html ; the user will be able to access it through his browser.

    Else you will have to script keeping this same idea. It will take time for me to do that; and iam sorry that iam having too busy a day to make these right now.

    All the best for your scripting. :)
     
Loading...

Share This Page