Re: [exim] Send mail to specific domains via smart host

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Heiko Schlittermann
Dátum:  
Címzett: exim-users
CC: Rory Campbell-Lange
Tárgy: Re: [exim] Send mail to specific domains via smart host
Hi Rory,

Rory Campbell-Lange via Exim-users <exim-users@???> (Mi 06 Mär 2019 22:43:00 CET):
>         no_more

>
> What I believe I need to add is a block like this:
>
>       dns_yahoo_aol:
>         debug_print = "R: dnslookup_yahoo_aol for $local_part@$domain"
>         driver = dnslookup
>         domains = aol.com : yahoo.com
>         transport = remote_smtp_smarthost
>       route_list = mx.localrelay.com byname
>         same_domain_copy_routing = yes
>         no_more


Not route_list, as this expects semicolon olon seperated list of items:

    <domain> <relayhost>[:<relayhost>]… <options>; …


While you could use this as:

    route_list = * mx.localrelay.com


the route_data options is possible too:

    route_data = mx.localrelay.com


(The advantage of route_data is, that the rhs gets expanded at runtime,
so it can be anything, from literal data (as in the example here) to
database lookups or whatever)

> The normal Debian exim4 config has
>
>       route_list = * DCsmarthost byname
>       and
>       host_find_failed = ignore


I'm not very familiar with the Debian config schema, but I think,
you need to define a smarthost, to get this router included in the final
config. But this would be the smarthost for all of your domains then.

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