Skip to content

MtaQueueHostVariable

Variables available in expression contexts that reference MtaQueueHostVariable.

VariableDescription
senderEnvelope sender (return path), empty for bounces
sender_domainDomain of the envelope sender, empty for bounces
rcpt_domainDomain of the recipient
rcptRecipient address; the domain is lowercase, the local part keeps its case
recipientsList of all recipient addresses of the message
mxMX host currently being tried, empty until one is selected
priorityMessage priority (number, from -9 to 9, 0 when not set)
remote_ipIP address of the remote server for the current attempt, 0.0.0.0 until one is selected
local_ipLocal IP address used for the current attempt, 0.0.0.0 when none is chosen
retry_numNumber of delivery attempts made so far for the recipient
notify_numNumber of delay notifications sent so far for the recipient
expires_inSeconds until the message expires, or remaining attempts when expiry is set by attempt count; 0 once expired
last_statusDelivery status of the recipient: Scheduled, Delivered, Temporary Failure or Permanent Failure, followed by details
last_errorType of the last error: none, dns, unexpected-reply, connection, tls, dane, mta-sts, rate, concurrency or io
queue_nameName of the queue holding the message
queue_ageSeconds since the message entered the queue
received_from_ipIP address the message was received from
received_via_portLocal port the message was received on (number)
sourceHow the message entered the queue: authenticated, dmarc_pass, unauthenticated, dsn, report, autogenerated or unknown
sizeMessage size in bytes