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.

Dublicated "maillog (new line)"

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

  1. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  3. vixon

    vixon Active Member

    Joined:
    Sep 23, 2009
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...
Similar Threads - Dublicated maillog (new
  1. NiklasRieckenFR
    Replies:
    1
    Views:
    410

Share This Page