Skip to content

MtaConnectionVariable

Variables available in expression contexts that reference MtaConnectionVariable.

VariableDescription
listenerName of the listener that accepted the connection
remote_ipIP address of the client
remote_portPort of the client (number)
local_ipLocal IP address the client connected to
local_portLocal port the client connected to (number)
protocolListener protocol, smtp or lmtp
is_tlsWhether the connection uses TLS (boolean)
asnAutonomous system number of the client, 0 when unknown
countryCountry code of the client, empty when unknown