Home
Features
Modules
Integrations
PowerMTA Docs
MailerQ Docs
Pricing
Blog
D
e
m
o
Home
Features
Modules
Integrations
PowerMTA Docs
MailerQ Docs
Pricing
Blog
D
e
m
o
Home
Features
Modules
Integrations
PowerMTA Docs
MailerQ Docs
Pricing
Blog
Home
Knowledge base
Knowledge base
PMTA knowledge base
›
Theme
Accounting and monitoring
entries in this theme: 114
disable-acct-records
<domain>
critical
Directive
Disables the creation of accounting records of the chosen types — delivery, bounce, transient failure, queuing failure — for an individual queue.
record-fields
<acct-file>
critical
set by the Hub
Directive
The field list for one record type; the default is the star, meaning the default field set marked in the manual’s tables; it supports exclusions and arbitrary message headers.
records
<acct-file>
critical
set by the Hub
Directive
A list of eight possible accounting record types; the default is deliveries and local bounces.
backoff-notify
<domain>
set by the Hub
Directive
A message arrives for both events — entering backoff mode and leaving it.
disabled-source-ip-notify
<domain>
Directive
The only thing that makes a quiet mechanism noticeable: a message arrives both on disabling and on re-enabling.
discard-as-bounce
<domain>
Directive
A discard queue still writes to accounting — this line decides with which letter.
enable-tq-record-for-proxy-failure
<domain>
Directive
Records proxy connection failures in tq accounting records; off by default and ignored without this record type.
http-mgmt-port
Global
set by the Hub
Directive
The TCP port of the management interface; the value 0 does not bring up the monitor at all. The default is 8080.
iso-times
<acct-file>
Directive
Whether to write timestamps in ISO format; yes by default.
privacy-policy
<signals>
Directive
Replaces the local part of the recipient address with a one-way SHA-1 hash; by default it is sent as is.
sync
<acct-file>
Directive
Makes the operating system flush the accounting file’s buffers regularly; off by default.
track-time-first-attempt
Global
set by the Hub
Directive
Enables tracking the time of the first attempt; it opens a field in accounting records and a delay metric. Off by default.
custom-message-id-header
<signals>
Directive
The name of the header with your message identifier; the service uses it to link opens and clicks with the other events.
delete-after
<acct-file>
set by the Hub
Directive
The retention period of an accounting file before deletion; the default is eight days, and it applies only without moving.
map-header-to-field
<acct-file>
Directive
Puts the contents of a message header into a ready-made field of the chosen record type; not set by default.
max-events-recorded
<domain>
Directive
Not a log but memory: the last ten errors for a domain, visible in the console and the web monitor.
max-size
<acct-file>
set by the Hub
Directive
A ceiling at which a new file is started; for a webhook — the maximum batch size.
move-to
<acct-file>
Directive
The destination directory for moving accounting files; by default there is no moving.
queue-filter
<acct-file>
Directive
A list of queue names with optional negation; by default records of all queues are written.
retain-x-sp-subaccount-id
<inline-seeding>
Directive
Keeps the service header in the message after processing; by default it is removed.
retain-x-sp-subaccount-id
<signals>
Directive
Keeps the service header in the message and makes it possible to write its value to accounting files; the line is shared with the seeding block.
time-first-attempt-domains-file
<prometheus-listener>
Directive
A list of receivers, up to a hundred names, for which the first attempt metric gets its own label; the rest fall into other.
track-inbound-perf-stats
Global
Directive
Enables counting the time from MAIL FROM to the end of DATA on acceptance; useful only together with the metrics listener.
track-outbound-perf-stats
Global
Directive
Enables counting the time from MAIL FROM to the end of DATA when sending; useful only together with the metrics listener.
track-recipient-events
<domain>
Directive
Off by default: the queue page says nothing about what happened to specific addresses.
user-string
<acct-file>
Directive
Arbitrary text that goes into the userstring field; it works only if that field is listed in the field set.
count-moved-records
<acct-file>
Directive
Appends the number of records to the log message about moving a CSV file; off by default.
dummy-smtp-update-stats
Global
Directive
On by default — and it is the only line in the family that spoils production data.
move-interval
<acct-file>
Directive
The interval for moving the accounting file; the default is a day, and it works only together with a destination directory.
retry-interval
<acct-file>
Directive
The interval for restarting the program that receives the records; the default is five minutes, only for the pipe form.
time-first-attempt-hires-timestamp
Global
Directive
Adds milliseconds to the first attempt timestamp in accounting records; works only with counting enabled.
write-timeout
<acct-file>
Directive
The wait limit for writing to the program, so that an unresponsive collector does not hold up the node; the default is one minute.
http-default-max-items
Global
Directive
Length of the “Top Queues”, “Top Domains”, “Top VirtualMTAs” and “Top Jobs” lists; default 10.
http-default-sort-order
Global
Directive
Order of lines in the “Top” lists — by recipient count, by name or by volume; by recipients by default.
pmc-acct-min-free-space
Global
Directive
Below the threshold the engine starts deleting the oldest accounting files accumulated for the management console; deleted data is lost forever.
The telemetry contract
critical
Mechanism
One block describes the accounting output in full: which record types, which fields, where they go, how files rotate and what gets anonymized.
A file, a program or an endpoint — and a file under each of the three
critical
Mechanism
Three ways to hand off accounting records; an endpoint still has a file underneath, which is deleted only after a successful send, and a non-2xx response triggers a retry.
How an accounting record is structured
critical
Mechanism
How an accounting record is structured: the record type in the first column, then the fields, whose composition is configurable.
What the node tells about itself and through which channels
critical
Mechanism
Seven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.
Accounting sent by the node instead of accounting collected from the node
Mechanism
Accounting records can be sent to HTTP endpoints in addition to files and the pipe — not instead of them.
Exposing metrics to a collector
Mechanism
Exposing the node’s metrics to an external collector in its format.
Node metrics in a standard format
Mechanism
The node exposes counters, gauges and summaries in a widely accepted format: traffic, connections, errors, queue depth and delays.
CSV or JSON — chosen by the file extension, not by a directive
Mechanism
Records are written as comma-separated values with a header line or as JSON objects, one per line; the choice is made by the extension in the path.
The log and accounting — two files and two different questions
Mechanism
The engine keeps a separate log and a separate accounting file; the separation is made for the sake of format, performance and the ability to hand over the log without disclosing data.
Exposing metrics over SNMP
Mechanism
The node can expose its metrics over SNMP — a second way of monitoring besides the web monitor.
<acct-file>
Configuration block
One accounting stream: which records and fields it carries, where it is written, how often it is rotated and how long it is kept.
<prometheus-listener>
Configuration block
The block opens a port on the node from which the monitoring system collects metrics in Prometheus format; a node can have only one such block.
show status
critical
Command
Prints the node’s state as a whole: traffic, connections, queue, spool, license.
digest
Command
Computes the hash of a given string with the chosen method.
pmtastats
Command
Computes throughput and traffic statistics from accounting files — for the node, sending addresses, jobs and domains.
reset counters
Command
Resets the statistics counters shown by
show status
.
rotate acct
Command
Immediately rotates all accounting files or one named file; the midnight rotation remains.
rotate log
Command
Closes the current log and starts a new one; the previous one stays in place.
acctfind
Command
Searches accounting files for records by fields and prints the selected fields in one of seven formats.
reset status
Command
An alias of the counter reset command.
Bounce category
critical
Accounting field
The name of the category assigned by a pattern from the text of the receiving server’s reply.
Job identifier
critical
Accounting field
The job string assigned by the submitting side.
Sending address
critical
Accounting field
The name of the sending address the message left through.
Through which proxy
Accounting field
The name of the proxy the delivery went through.
Encryption version
Accounting field
The name of the encryption protocol version.
How many attempts there were
Accounting field
The number of retries before this event.
Which node address it was submitted to
Accounting field
The node address the connection came to.
When the first attempt was made
Accounting field
The timestamp of the first delivery attempt. It is enabled by a separate node directive.
Which address was connected to
Accounting field
The address the engine opened the connection to.
What the receiver supports
Accounting field
The keywords of the extensions announced by the receiver.
Client name at the proxy
Accounting field
The host name the proxy introduced itself with.
Client address at the proxy
Accounting field
The address the proxy presented to the receiver.
The node address used to reach the proxy
Accounting field
The node’s local address the engine used to connect to the proxy.
Proxy address
Accounting field
Host and port of the proxy server.
Size transferred
Accounting field
Message size in bytes.
Which address it went out from
Accounting field
The source address of the outgoing connection.
Cipher suite
Accounting field
The name of the cipher suite.
How it was delivered
Accounting field
The delivery method: an SMTP session, to a file, via pipe, or by discarding.
What was done with the message
Accounting field
One of the standard delivery report words: delivered, delayed, failed.
What exactly the receiver answered
Accounting field
Free text — the receiver’s response as is.
Who answered
Accounting field
The name or pattern of the host that gave the response.
Who compiled the report
Accounting field
The name of the host that compiled the delivery report.
Numeric outcome code
Accounting field
A status code in dot notation — for example 5.1.1.
Envelope identifier
Accounting field
A string assigned by the submitting side to each message.
Complaint type
Accounting field
The feedback type stated in the report.
Report format
Accounting field
The name of the format of the incoming report.
Selected message headers
Accounting field
The values of the message headers selected in the accounting setup — one column for each.
Original recipient address
Accounting field
The recipient address as the sending side submitted it.
Envelope return address
Accounting field
The sender address from the envelope — not from the message header.
The whole queue
Accounting field
The queue name — the receiver and the sending address together.
Recipient address
Accounting field
The recipient address this line refers to.
Which login it was submitted under
Accounting field
The name of the account under which authentication took place.
Where the connection came from
Accounting field
The address the incoming connection came from.
Which domain the complaint is about
Accounting field
The domain named in the complaint report.
Who sent the report
Accounting field
The name of the host that sent the complaint report.
Which node address accepted the report
Accounting field
The address of the PowerMTA that accepted the report message — that is how the manual describes the field.
Who submitted the message
Accounting field
The name of the host the message came from.
How the message was submitted
Accounting field
The submission method: an SMTP session or the submission interface.
When the event was logged
Accounting field
The timestamp when the engine wrote the line. The format is ordinary or in seconds — this is configurable.
When the message entered the queue
Accounting field
The timestamp when the message entered the queue.
How long the message sat in the queue
Accounting field
The number of seconds the message spent in the queue.
Record type
Accounting field
A short code at the very beginning of the line: d — delivered, b — bounced, t — transient failure, and so on.
What the report was produced with
Accounting field
The name and version of the program that produced the report.
The accounting block's own string
Accounting field
An arbitrary string set by the user-string directive in the accounting block.
Address group
Accounting field
The pool name, if the sending address belongs to one.
Permanently bounced
critical
Accounting record
The recipient permanently did not receive the message — either the receiving server refused for good, or the node itself bounced the message when the deadline expired.
Delivered — the record everything is counted by
critical
Accounting record
Written for every recipient whose message the destination server accepted: the outcome, the time, the sending address, the job, transport security and the proxy.
Complaint
Accounting record
A complaint report was received and parsed by the configured processor.
Received
Accounting record
The message was successfully submitted to the node — through a mail session or through the submission interface.
Parsed bounce from outside
Accounting record
A bounce report email arrived at the configured processor and was parsed.
Temporary failure
Accounting record
One delivery attempt failed, and the recipient stays in the queue until the next one.
Temporary queue failure
Accounting record
The attempt failed at the queue level: the connection was refused, was not established or dropped before the conversation about messages.
Delivery notification
Accounting record
A delivery status notification that is not a bounce has arrived — for example, a delivery confirmation.
Traffic counters
Metric
Recipients, messages and kilobytes for all time, for the last hour and for the last minute.
Throughput peaks
Metric
The highest values per hour and per minute — recipients, messages, kilobytes.
Logs
critical
Monitor screen
A list of log and accounting files with download links.
Node status
Monitor screen
Node state on one page: traffic, peaks, connections with the ceiling, the DNS cache, the spool and queues by delivery method.
The monitor's home page
Monitor screen
The web monitor’s start page: installation information, the top queue domains and links to the other screens.
The node's own log
File
The engine’s own log: startup and shutdown, errors, connection traces and warnings; rotation is automatic, the number of kept files is configurable.