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