Re: [Exim] conditional callout?

Top Page
Delete this message
Reply to this message
Author: Giuliano Gavazzi
Date:  
To: Wouter Verhelst, exim-users
Subject: Re: [Exim] conditional callout?
At 2:19 pm +0200 2004/06/22, Wouter Verhelst wrote:
>This is not what I want it to do. What's necessary is that the callout
>should only be performed if the connection we're dealing with does /not/
>originate from the system we would perform a callout to in the first
>place. I've been searching in the documentation for an option to
>accomplish this, but either I've missed something, or this isn't
>possible... any hints?


if this is what you are trying to do then you can, for example:

accept condition = ${if eq {$sender_address_local_part}{}{yes}{no}}
        hosts     = your_other_mailserver_ip
        domains   = +local_domains
        endpass
        message   = unknown user
        verify    = recipient


in your rcpt acl and before any other recipient check is performed.
Note that I am not using callout here, so this will stop callouts
from your other mailserver from triggering another callout. Note that
if you are using the option of using the original sender for
recipients callouts then you should not include the first condition
that check for null senders, actually, thinking of it, you do not
need that anyway.

So, more generally:

accept hosts     = your_other_mailserver_ip
        domains   = +local_domains
        endpass
        message   = unknown user
        verify    = recipient


am I missing something....?

Also, you could have a single MX, only one of the two machines would
then receive mail from outside, and the other would not need to
perform any callouts at all, resolving you problem at the source.

Giuliano
--
H U M P H
    || |||
  software


Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/