Applicable to:
- Plesk for Linux
Question
How to get Outgoing Mail Control statistics data via CLI?
Answer
Outgoing Mail Control statistics data can only be fetched for all domains at once in JSON. It can not be fetched on per-mailbox or per-domain basis.
-
Execute the following command to get Outgoing Mail Control statistics for last hour:
# plesk sbin mailmng-outgoing --pretty-print --fetch-statistics --with-limits --time-step='hour'
To get more information about the utility, execute the following command:
# plesk sbin mailmng-outgoing --help
Note: The utility is intended to be used by Plesk internally. So output format, as well as any other options, are subject to change without any further notifications. You should use the utility at your own risk.
Additional information
How to find the source of exceeding Outgoing Mail Control limits via Plesk
Comments
1 comment
The output in JSON format is far from friendly. I am looking for a way to use a remote command to monitor my entire fleet of Plesk servers and check what mail users already reached their hourly limit. Is that possible?
Thank!
Please sign in to leave a comment.