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.

E-mail Cencorship

Discussion in 'E-mail Discussions' started by macinville, Aug 15, 2012.

  1. macinville

    macinville Registered

    Joined:
    Aug 15, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there,

    I will be administering a random checking of inboxes and sent messages in our company, however I can't find where to look at. I tried looking at /var/log/exim_mainlog but only the title is there. Searching /var/log/mainlog did not also helped. In WHM, I can only find searching for the status of the mail, but not the message content.

    How can I achieve my task? Please enlighten me if I am missing something obvious here.
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Mail messages are stored in the following directory structure:

    /$HOME/$USER/mail/$DOMAIN/$MAILUSER

    where:

    • $HOME = the home partition (/home, /home2, etc.);
    • $USER = the cPanel account user;
    • $DOMAIN = the domain, and;
    • $MAILUSER = the actual mailbox.

    Mail is stored in two subdirectories within that directory structure:

    • new is for messages that have not yet been read in a mail client (Outlook/Thunderbird/Webmail), and;
    • cur is for messages that have been read in a mail client.

    The messages are stored in plain-text format in the new and cur subdirectories, with a single file for each individual message.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    If you want the following as you've indicated:

    Sent messages using an email client other than webmail will not be stored on the server. You'd need to add a BCC filter to get a copy of those such as is discussed at the following location:

    http://forums.cpanel.net/f43/hidden-copies-incoming-outgoing-emails-201801.html#post828491

    Thanks!
     
  4. macinville

    macinville Registered

    Joined:
    Aug 15, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the replies. Yes, I saw the test messages I created and sent at /$HOME/$USER/mail/$DOMAIN/$MAILUSER. However, when the message was deleted at the inbox, sent, and trash, I will no longer have any trace of whatever they sent or received. So I guess I'll go with cPanelTristan's suggestion. :)

    Thanks guys! :)
     
  5. macinville

    macinville Registered

    Joined:
    Aug 15, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have another concern. Is there a way that I can create my own log file for sent and received messages? I will be creating a script that will delete the messages automatically depending on the age of the message from all the folders (or is there an easier way than to create a bash script? I'm sure this was already accomplished by others), but I don't want to lose track of the sent and received messages from the past. So what I want is for the mail server to create a customized log file for me, because I find /var/log/exim_mainlog confusing because of extra information included.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    It is going to be a lot of overhead to produce your own log file. I wouldn't suggest doing that. I'd instead suggest making a backup of emails to move them somewhere else rather than deleting them.
     
  7. macinville

    macinville Registered

    Joined:
    Aug 15, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the input, I will do that instead.
     
Loading...

Share This Page