Re: [Exim] Re: [newbie] smarthosts found by MX

Página Inicial
Delete this message
Reply to this message
Autor: Nicolas Kowalski
Data:  
Para: exim-users
Assunto: Re: [Exim] Re: [newbie] smarthosts found by MX
Nicolas Kowalski <Nicolas.Kowalski@???> writes:

> Bernard Massot <bmassot@???> writes:
>
>> smart_route:
>>     driver = manualroute
>>     transport = remote_smtp
>>     domains = !+local_domains
>>     route_data = * ${sg{${sg{${lookup dnsdb{mx=mailhost.imag.fr}\
>>                     {$value}fail}}{\N\d+ \N}{}}}{\N\n\N}{:}}

>
> Thanks for your reply.
>
> I have problems compiling dnsdb lookups in exim4 (FreeBSD port) at
> this moment. I will tell you if this works soon.


I did not manage to make exim4 work with dnsdb lookups. :-(

However, it works with a horrible hack :

route_list = * ${readfile{/usr/local/etc/exim/smarthosts}{}}

The "smarthosts" file is generated by a script called by cron every
day, which asks the DNS for our MXs.


Thanks for your tip anyway.


PS : further archive reading showed me that what I am searching for is
the "bydns_mx" directive which is available only in Exim3...

--
Nicolas