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.

Best way to log incoming/outgoing e-mail?

Discussion in 'E-mail Discussions' started by Man0warr, Jun 5, 2007.

  1. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Two of our clients want to be able to find an e-mail sent as far back as 2 weeks-1 month ago for the future, including the text including in the e-mail. This isn't something WHM/cpanel can do right now.

    What is the best way to get this functionality?
     
  2. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    I too

    I too would like to do this. A need to log incoming and outgoing email with the entire message body. I have a client who has a particular legal need.
     
  3. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    In the /etc/cpanel_exim_system_filter file you can setup a ruleset to do an unseen deliver.
    So if a certain domain or address is being sent to/from you can log all the outbound mail to a designated email address without anyone knowing. EG: maillog@mydomain.com
     
    #3 ramprage, Jun 6, 2007
    Last edited by a moderator: Jun 6, 2007
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Couldn't you use Mailwatch for that? It is part of the mailscanner package I use and I think it would do what you want. I don't know how/if it would be used without mailscanner.
     
  5. fuzzie

    fuzzie Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    I had this:
    In the /etc/cpanel_exim_system_filter file you can setup a ruleset to do an unseen deliver.
    set up and working perfectly, and it stopped this morning after the cPanel update.
    Anyone else having this issue?
     
    #5 fuzzie, Jun 6, 2007
    Last edited by a moderator: Jun 6, 2007
  6. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Can Mailwatch log the entire message body too? From looking at it I thought it just did the transaction, sender/receiver, etc
     
  7. fuzzie

    fuzzie Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    I figured out the problem:
    antivirus.exim got changed to cpanel_exim_system_filter

    Works now....
     
  8. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Large inbox

    Even if you do the /etc/cpanel_exim_system_filter file where you send all the emails to an inbox. That inbox is going to become untenable very quickly. How do you look through it or do anything with it when it gets to a gig or two.
     
    #8 eeadmin, Jun 6, 2007
    Last edited by a moderator: Jun 6, 2007
  9. dspillett

    dspillett Active Member

    Joined:
    Oct 2, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    A good IMAP account ready shoul dbe able to filter the messages into folders for you, though you'd have to create the folders and filter rules first.

    Also, if you are using maildir rather than mbox, then could you not relatively easily create a script (run from cron every now and again) moves the files into folders automatically? A combination of a little bash scripting calling find and grep would do the trick and that way you could create folders dynamically if needed (such as if you want a new folder each month/week/day).
     
  10. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    This would be a nice feature to add into the mail options of cpanel or WHM. We currently do this manually upon request by customer, but would be nice to give them ability to do it themselves.

    Anyone want to submit it as a feature request in bugzilla.cpanel.net?
     
  11. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Good IMAP Client

    So you can set up the account with a good IMAP client, could you suggest a good IMAP client?
     
  12. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    still see antivirus.exim

    I do not see the new file the cpanel_exim_system_filter
     
  13. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Okay I setup the antivirus.exim file to copy incoming/outgoing to another location.

    Now my question, does anyone know a good IMAP client/filter rules we can use to sort the mail coming to the new location?
     
  14. eeadmin

    eeadmin Well-Known Member

    Joined:
    Oct 21, 2004
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    double messages

    I updated antivirus.exim.1 and I get multiple messages when spam assassin is enabled. I tried several variations on the filtering options but none seem to work. Does anybody have any ideas on that? Does the filtering run twice if spam assassin enabled?
     
    #14 eeadmin, Jun 9, 2007
    Last edited: Jun 11, 2007
  15. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    We are getting two copies of every e-mail, if we disable spam assassin, we only get one. Is there a way to fix this?
     
  16. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Posting solution in this thread too

    added the bold part to fix

     
  17. fuzzie

    fuzzie Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    my /etc/cpanel_exim_system_filter is getting overwritten every night with the update script. How do I stop that from happening?
    I tried chmod -w /etc/cpanel_exim_system_filter but that didn't work?
    As a work around I guess I can set up a cron to cp /etc/cpanel_exim_system_filter.old /etc/cpanel_exim_system_filter but I would prefer to just stop it from overwriting it.
     
  18. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    For one client, all emails (both in and out) are sent to an outside address. A windows box on their network pulls the emails down via a script every X minutes and renames them to .eml

    For searching, Google Desktop search is installed.

    In just under 2 yrs, they've only had to use the search function twice. The whole setup has run more or less flawlessly that whole time.
     
  19. fuzzie

    fuzzie Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    I'd like to put this in the exim conf editor in WHM, but I am not sure where to insert it.

    unseen deliver user@domain.com

    Does anyone know?
     
Loading...

Share This Page