Re: [exim] Exim4 route based on senders IP address

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Heiko Schlittermann
日付:  
To: exim-users
題目: Re: [exim] Exim4 route based on senders IP address
Hi Peter,

I didn't follow the thread completly, so please forgive me if I do not
answer you exact question.

Peter Leeman <Peter.Leeman@???> (Mo 06 Jun 2016 16:09:16 CEST):
> Hi Jeremy
> Do you happen to have an example of how this would work, my deadline for getting it done has passed.
>
> On 2016-06-03 09:15, Jeremy Harris wrote:
> > On 02/06/16 17:02, Peter Leeman wrote:
> > > I can't find any reference to exim processing and holding the IP address in a variable.
> > http://exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html
> > $sender_host_address



    from_rfc1918:


        driver = manualroute
        condition = ${if match{$sender_host_address}{10.0.0.0/8 : 172.16.0.0/12 : 192.168.0.0/16}}
        route_data = smarthost
        transport = remote_smtp


    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -