HSL Mail Transport Variables
From Halon Security
(Redirected from HSL/Mail Transport/Variables)
The Mail Transport flow has a few variables defined, as described below;
| Name | Example | Description |
|---|---|---|
| $serverip | "10.0.0.1" | IP to which we tried to connect (empty on DNS problems) |
| $serverport | 25 | Port on which we tried connect |
| $sender | "spam@example.com" | Mail address of sender |
| $senderip | "1.2.3.4" | IP-address of sender (of original message) |
| $senderdomain | "example.com" | Domain part of sender address |
| $recipient | "test@example.com" | Mail address of recipient |
| $recipientdomain | "example.com" | Domain part of recipient address |
| $retry | 3 | The current retry count |
| $errormsg | "5.7.1 <spam@example.org>... we do not relay <test@example.org>" | The error message from the server |
| $errorcode | 550 | The error code from the server (A value 0 of indicates network problems). |
| $errorndr | "5.7.1" | The NDR code from the server (if available) |