Re: [exim] callout to Exchange2013

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] callout to Exchange2013
Hi,

Fraenzl, Martin via Exim-users <exim-users@???> (Fr 22 Jun 2018 09:29:50 CEST):
>
> After finding the example from 2015,I discussed the options with our Exchange admins.
>
> When I asked about an example, I talked about the " specialized router/transport combo" that Heiko mentioned.



From my memory an example that should work. But beware, it is meant as a
specialized example, routing all mails to your Exchange.

====== 8< ----
EXCHANGE = xx.xx.xx.xx

keep_environment =

acl_smtp_rcpt = acl_check_rcpt

begin acl

acl_check_rcpt:

    require
        message = recipient $local_part@$domain is unknown
        verify = recipient/callout=use_sender,defer_ok



    accept



begin routers

    exchange:
        driver = manualroute
        route_data = EXCHANGE
        transport = exchange
        verify = no
        self = send


    exchange_verify:
        driver = manualroute
        route_data = EXCHANGE::2525
        transport = exchange
        self = send

        

begin transports

    exchange:
        driver = smtp

        
====== 8< ----

    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 ------------ -