ec_get_message_received_via_port
Last updated March 2020
Name
ec_get_message_received_via_port — Return the local port that the message was received on.
Synopsis
ec_get_message_received_via_port
Description
ec_get_message_received_via_port
returns the local port on which the message was received. It takes the form of an integer.
In the following script, the received_via_port is checked against a specific value and the mail is permanently failed if it does not match.
$p = ec_get_message_received_via_port; if not ec_test :is "${p}" "$local_port" { ec_action 550 "ec_get_message_received_via_port failed. Expected $local_port, got ${p}"; }
Was this page helpful?