Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Dublicated "maillog (new line)"

Discussion in 'E-mail Discussion' started by vixon, May 26, 2011.

  1. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    Hello,

    One of our servers has strange problem with log rotation, it rotates maillog but keeps its growing original file also (4.7 GB):eek::

    -rw------- 1 root root 85031701 May 26 11:17 maillog
    -rw------- 1 root root 132710627 May 22 04:02 maillog.1
    -rw------- 1 root root 134256344 May 15 04:03 maillog.2
    -rw------- 1 root root 139459215 May 8 04:02 maillog.3
    -rw------- 1 root root 142970813 May 1 04:03 maillog.4
    -rw------- 1 root root 5031616729 May 26 11:17 maillog (new line)

    Could anybody explain how to fix this ?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You have two files called maillog in the same directory? That shouldn't be possible on the system. What are the inode numbers for these files?

    Code:
    ls -li /var/log/maillog*
    Since it should be sorting them alphabetically, it seems to me that the second file cannot possibly be called maillog and be after maillog.4 in the listing, since that wouldn't be alphabetical.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Estonia
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, these files are both in the same directory.

     
    #3 vixon, May 27, 2011
    Last edited: May 27, 2011
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Try removing the file that is called /var/log/maillog with the different inode number than the normal maillog:

    Code:
    find . -inum 73826452 -exec rm -i {} \;
    After it has been removed, restart exim to ensure that /var/log/maillog is still getting written to properly and check the other file isn't forming any longer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice