Re[2]: [Exim] Detecting and routing locally generated messag…

Top Page
Delete this message
Reply to this message
Author: Peter A. Savitch
Date:  
To: everton
CC: exim-users
Subject: Re[2]: [Exim] Detecting and routing locally generated messages
Hello Nico,

Tuesday, September 24, 2002, 9:46:22 PM, you wrote:

>>> 1) -bm option
>>> 2) -bS option
>>> 3) -bs option
>>> 4) TCP call to loopback address
>>
>> condition = ${if eq {$interface_address}{$host_address}{1}}
>>
NE> $host_address should be $sender_host_address, sorry


Try this router condition (sorry if I missed any curly braces):

condition = ${if or{ \
          {!def:sender_host_address} \
          {eq{${mask:$sender_host_address/8}}{127.0.0.0}} \
          {eq{$interface_address}{$sender_host_address}} \
          } {yes}{no}}


Extend it with Your own. Idea is clear.
I'm not sure, but empty host address could lead to errors during
expansion.

--
Best regards,
 Peter                            mailto:spam4octan@highway.ru