On 2/13/2017 4:16 PM, Phil Pennock wrote:
You can be more explicit by using the or{} wrapper yourself.
Even easier is separate what I have into two back to back deny
conditions. <g> (Probably the reason exim ANDs multiple conditions on
one command.)
# Is TLD the same?
deny message =\
helo/host mismatch\
helo=$sender_helo_name\
host=$sender_host_name
condition = ${if eq \
{${extract{-1}{.}{$sender_host_name}}}\
{${extract{-1}{.}{$sender_helo_name}}}\
{no} {yes}}
# Yes, TLD is the same, but is 2nd level same?
deny message =\
helo/host mismatch\
helo=$sender_helo_name\
host=$sender_host_name
condition = ${if eq \
{${extract{-2}{.}{$sender_host_name}}}\
{${extract{-2}{.}{$sender_helo_name}}}\
{no} {yes}}
Skinning cats, one by one.
Phil
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/