ec_get_message_rcptto
Last updated March 2020
Name
ec_get_message_rcptto — Return the rcptto of the current message.
Synopsis
ec_get_message_rcptto
Description
ec_get_message_rcptto
returns the rcptto of the current message. It has the form of RCPT TO:bar@bar.com.
In the following script, the rcptto is checked against a specific value and the mail is permanently failed if it does not match.
$rcpt = ec_get_message_rcptto; if not ec_test :contains "${rcpt}" "RCPT TO:<bar@bar.com>" { ec_action 550 "ec_get_message_rcptto failed (read ${rcpt})"; }
Was this page helpful?