ec_interfaces
Last updated March 2020
Name
ec_interfaces — obtain a list of network interfaces
Synopsis
ec_interfaces
Description
This function returns a stringlist of all IPv4 addresses assigned to the local machine except for localhost (127.0.0.1).
Note
This feature is an extension to the Sieve system and can be made available by loading the mail_loop module. See “mail_loop – Mail Loop Detection” for more information.
This function can be useful for detecting spoofing attacks that use the local machine's IP address as the argument to EHLO (a common spamming mistake).
$ips = ec_interfaces; if ec_test :contains "%{spfv1:h}" $ips { ec_action 550 "spoof from %{spfv1:i} claiming to be me %{spfv1:h}"; } stop;
Was this page helpful?