1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

SMTP traffic miscalculation?

Discussion in 'Plesk for Windows - 8.x and Older' started by akox, Mar 30, 2009.

  1. akox

    akox New Pleskian

    22
    57%
    Joined:
    Jun 8, 2006
    Messages:
    16
    Likes Received:
    0
    Hello there,

    I'm experiencing a very strange issue on plesk 8.6.0.4. I think that the smtp in/out bytes are calculated incorrectly on some clients.
    I'm comparing the contents of the domains_traffic table of the "psa" database ,where we can find the traffic per protocol/per customer/per day and the SMTP logfiles of mail enable.
    I'm spotted differences on bandwidth calculations even on domains with very little traffic (ex 1 mail per day).

    Anyone have experienced the same issue, or complaints by customers for miscalculation in smtp traffic?

    take a look at the following example.

    In plesk's database, the smtp_in bandwidth for mydomain1.gr for 9/3/2009 is 127 bytes.
    mydomain1.gr gets only one email that day, by IP address CLIENT.IP
    Below is the content of the SMTP logfile of mail enable that refers to CLIENT.IP or mydomain1.gr

    If we add the last number on the first 3 lines (smtp_in = cs-bytes) we get 27+48+38 = 113 bytes

    we have a difference of 127-113 = 14 bytes.

    I've done this calculation (by using a perl script) for many domains by using this method. I can match exactly the bandwidth that plesk reports on a small number of domains! The other domains have smaller or higher traffic than the one plesk reports.

    Can anyone help me with this?



    #Fields: date time c-ip agent account s-ip s-port cs-method cs-uristem cs-uriquery s-computername sc-bytes cs-bytes cs-username

    2009-03-09 23:04:34 CLIENT.IP SMTP-IN SERVER.IP 452 EHLO EHLO+geo-1aec8e5c93e.host 250-serverdomain+[CLIENT.IP],+this+server+offers+4+extensions PLESK4 128 27

    2009-03-09 23:04:34 CLIENT.IP SMTP-IN SERVER.IP 452 MAIL MAIL+FROM:<info@friendsfood.com.ar>+SIZE=48330250+Requested+mail+action+okay,+completed PLESK4 43 48

    2009-03-09 23:04:34 CLIENT.IP SMTP-IN mydomain1.gr SERVER.IP 452 RCPT RCPT+TO:<info@mydomain1.gr> 554+The+IP+Address+of+the+sender+(CLIENT.IP)+was+found+in+a+DNS+blacklist+database+and+was+therefore+refused. PLESK4 114 38

    2009-03-09 23:05:26 CLIENT.IP SMTP-IN SERVER.IP 1268 EHLO EHLO+geo-1aec8e5c93e.host 250-serverdomain+[CLIENT.IP],+this+server+offers+4+extensions PLESK4 128 27

    2009-03-09 23:05:26 CLIENT.IP SMTP-IN SERVER.IP 1268 MAIL MAIL+FROM:<info@friendsfood.com.ar>+SIZE=48330 250+Requested+mail+action+okay,+completed PLESK4 43 48

    2009-03-09 23:05:26 CLIENT.IP SMTP-IN mydomain2 SERVER.IP 1268 RCPT RCPT+TO:<info@mydomain2> 554+The+IP+Address+of+the+sender+(CLIENT.IP)+was+found+in+a+DNS+blacklist+database+and+was+therefore+refused. PLESK4 114 38
     
  2. ElnazT

    ElnazT New Pleskian

    13
    60%
    Joined:
    Feb 21, 2012
    Messages:
    19
    Likes Received:
    0
    Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
     
Loading...