• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

SMTP traffic miscalculation?

akox

New Pleskian
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:<[email protected]>+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:<[email protected]> 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:<[email protected]>+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
 
Back
Top