Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    52

    Default POP3 multiple lines in maillog file

    Hello,

    In my server with latest cPanel/WHM versions, everytime some user checks his email account, 8 lines are logged in the maillog file. 8 lines with LOGIN and 8 lines with LOGOUT. This happens with all mail accounts.

    The problem: the Bandwidth Usage report is giving wrong statistics. A user that downloads 20 Mbytes in a day, the report shows 160 Mbytes downloaded. With a high utilization, users get a "bandwidth exceeded" message that is not true.

    My question is:
    - any idea how to correct the multiple log lines?
    - if not, how can I set cPanel to ignore all POP3 traffic?
    - if yes, can I "cat /dev/null >/var/log/maillog" some minutes before the cron job?
    - cPanel reads "maillog" file once a day to calculate the bandwidth usage or not?

    Please help.

    Thank you a lot,
    Roger

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by Arvy
    Hello,

    In my server with latest cPanel/WHM versions, everytime some user checks his email account, 8 lines are logged in the maillog file. 8 lines with LOGIN and 8 lines with LOGOUT. This happens with all mail accounts.

    The problem: the Bandwidth Usage report is giving wrong statistics. A user that downloads 20 Mbytes in a day, the report shows 160 Mbytes downloaded. With a high utilization, users get a "bandwidth exceeded" message that is not true.
    You might want to check that the entires in /var/cpanel/username are valid for each user. Incorrect bandwidth reporting where the value is over-reported by an exact multiple of the real value is often due to duplicate domain names in /var/cpanel/username.


    Quote Originally Posted by Arvy
    - cPanel reads "maillog" file once a day to calculate the bandwidth usage or not?
    I believe all bandwidth monitoring is performed in real time. I don't think that bandwidth usage is calculated from a given service's log file, hence I think it unlikely that the multiple entries in /var/log/maillog will be directly responsible for incorrect bandwidth reporting.

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    You probably have multiple lines in /etc/syslog.conf. There are various posts regarding this on this forum. You can check this thread:

    http://forums.cpanel.net/showthread.php?t=52875

    Some of the other threads may contain more detailed information, you will just need to search for them.

  4. #4
    Member
    Join Date
    Oct 2006
    Location
    Brazil
    Posts
    52

    Default

    Hello sparek-3,

    thank you very much for our tip, I think you absolutely right. I've opened this file and there are exact 8 identical lines about maillog. I've removed, restarted syslog and now only one line is logged. I think the next bandwidth report will be ok.

    Thank you very much for your help, I really apreciate.

    Thanks webignition too, for your reply.

    Roger

Similar Threads & Tags
Similar threads

  1. Delete lines from .htaccess file after suspend
    By Mo9a7i in forum cPanel Developers
    Replies: 0
    Last Post: 11-01-2009, 10:46 PM
  2. cosmetics - cpanel shouldn't split client domain among multiple lines
    By boatdesign in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-06-2008, 04:07 PM
  3. changing the path of maillog file
    By nitaish in forum E-mail Discussions
    Replies: 1
    Last Post: 07-13-2007, 09:35 AM
  4. can i delete maillog.1, maillog.2 under /logs
    By radical in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-21-2005, 04:30 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube