• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question How to get a list of domains and their mail outputs?

tkalfaoglu

Silver Pleskian
I would like to get a list of how much outbound mail (in bytes for example) per domain right now.
For example,

abc.com 363733
xyz.com 28282
etc

Is there an SQL query or some plesk report that would provide something like that?
Many thanks, -turgut
 
You can use following SQL query for period from 10 May to 20 May, for example:

select domains.name, (sum(DomainsTraffic.smtp_out))/1024/1024 as "Out SMTP,MB", (sum(DomainsTraffic.pop3_imap_out))/1024/1024 as "Out IMAP/POP3,MB" from domains, DomainsTraffic where id=dom_id AND date>='2020-05-10' AND date<='2020-05-20' GROUP BY dom_id;

Results in Mb.
 
Back
Top