Re: [exim] catch-almost-all forwarding

Inizio della pagina
Delete this message
Reply to this message
Autore: Heiko Schlittermann
Data:  
To: exim-users
Oggetto: Re: [exim] catch-almost-all forwarding
Hi Leonardo,

Leonardo Boselli <leo@???> (Sa 21 Mär 2015 18:51:38 CET):

> Of course i cannot make a normal catch-all that route "noirmally" since the
> mx for the domain is the server that is forwarding, so it must forward the
> messge without canging it, but forwarding to a different machine that is no
> longe the one on mx record ...
> (actually: even email generated locally and sent to "unknown" addresses must
> be forwarded that way)
> suggestion on the safest way higly welcome !


Not tested, may contain errors and is incomplete

begin routers

    # the default for non local domains
    remote:
        driver = dnslookup
        domains = !+local_domains
        transport = remote_smtp
        no_more


    # local accounts, list of local_parts from LDAP, file
    # or some similiar lookup method
    local:
        driver = accept
        local_parts = <the list of allowed localparts>


    # anything else we didn't catch alreay gets forwarded
    # to the old host
    catchall:
        driver = manualroute
        route_data = * old.server
        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 ------------ -