Re: [exim] Router problem

Top Page
Delete this message
Reply to this message
Author: Chris Siebenmann
Date:  
To: Jim Trigg
CC: exim-users, cks
Subject: Re: [exim] Router problem
> > Variable "sender_host_address" is defined for SMTP submission only.
> > For locally non-SMTP submitted messages, it must be empty.
>
> Thank you; that's the clue I needed. Now I just need to figure out a
> condition for "locally submitted or smtp-authenticated".


The condition we use is whether $interface_address is defined. If it's
undefined or if it's in 127/8, we consider the mail locally generated.
We actually define the condition the other way around:

# This condition is true if the message came from the outside world,
# ie was received over a non 127/8 interface.
FROM_REMOTE = and { {def:interface_address}\
                    {!match_ip{$interface_address}{127.0.0.0/8}}\
              }



    - cks