[exim-dev] [Bug 1685] interface_strict

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: admin
Dátum:  
Címzett: exim-dev
Tárgy: [exim-dev] [Bug 1685] interface_strict
https://bugs.exim.org/show_bug.cgi?id=1685

Phil Pennock <pdp@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pdp@???


--- Comment #1 from Phil Pennock <pdp@???> ---
For those wondering why there's a copy/paste of a chunk of the documentation,
the key is in the last two sentences, which redefine "ignored" (instead of
removing use of the term).

I think that this could be achieved with something like (UNTESTED):

    interface = <; 192.168.123.123 ; 3ffe:ffff:836f::fe86:a061
    condition = ${if or{\
       {match_ip{192.168.123.123}{@[]}}\
       {match_ip{3ffe:ffff:836f::fe86:a061}{@[]}}\
       }}


Easier to keep in sync using a macro (AGAIN UNTESTED):

    # macro section
    OUTBOUND_IPADDRESS=<; 192.168.123.123 ; 3ffe:ffff:836f::fe86:a061
    # ... transport section, on the smtp transport:
    interface = OUTBOUND_IPADDRESS
    condition = ${if forany{OUTBOUND_IPADDRESS}{match_ip{$item}{@[]}}}


While a strict variant would be cleaner to configure, the use-case needs
clarification to explain why the situation is common enough that being able to
configure around it is not sufficient.

--
You are receiving this mail because:
You are on the CC list for the bug.