PureMessage for UNIX: Reporting total message volume

  • Article ID: 29590
  • Updated: 29 Apr 2013

There is no default report in PureMessage that reports on total mail volume for a specific PureMessage edge server or all servers combined. However, it is possible to use the Policy Mark Hits report to log this data. The Policy Mark Hits report shows a count of keywords and keys from the message log. It can be used to count how many times specific policy rules are triggered once message log marking actions have been added to those rules.

To set up the Policy Mark Hits report, complete the following steps on each of your PureMessage servers:

1. First, set up the Policy Mark Hits report for outbound messages:

a) Locate the following line in the internal-hosts section of policy.siv (/opt/pmx/etc), and change the following section for better clarity in the report. The existing section is as follows:

# attr NAME=Mail from internal hosts
if pmx_relay :memberof "internal-hosts" {
# The 'pmx-mlog-watch' depends on this to know which    messages
# are outgoing and which are not.
pmx_mark1 "i";

Change this section to:

# attr NAME=Mail from internal hosts
if pmx_relay :memberof "internal-hosts" {
# The 'pmx-mlog-watch' depends on this to know which messages
# are outgoing and which are not.
pmx_mark1 "internal";

b) As the PureMessage user, restart the milter service:

$ pmx-milter restart

2. Set up the Policy Mark Hits report for inbound messages:

a) Locate the following line in the external-hosts section of policy.siv (/opt/pmx/etc) and change the following section:

# attr NAME=Mail from external hosts
else {
pmx_add_header "X-PMX-Version" "%%PMX_VERSION%%";
pmx_mark "Size" "%%MESSAGE_SIZE%%";

Change to (adding in the extra line):

# attr NAME=Mail from external hosts
else {
pmx_add_header "X-PMX-Version" "%%PMX_VERSION%%";
pmx_mark "Size" "%%MESSAGE_SIZE%%";
pmx_mark1 "external";

Restart the milter service as the PureMessage user:

$ pmx-milter restart

3. Afterward, if you check the Policy Mark Hits report in the PureMessage Manager interface (Reports>Policy Marks), you can view a count of new messages processed by the mail filter that matches the test above. This will only contain the data from when you made the policy change and onward.

You can use the Modify Report sidebar at the bottom left-hand corner of this report in the PureMessage Manager to change the time frame, and run a report with the total count of inbound/outbound messages in the specified time frame.

In the Groups Web Interface (http://pmxserver.com:28080/groups), the Policy Mark Hits report is a "Top 20" report.

 
If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent

Comments