Re: [exim] No MAIL verb before RCPT

Top Page
Delete this message
Reply to this message
Author: Phillip Carroll
Date:  
To: exim-users
Subject: Re: [exim] No MAIL verb before RCPT


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