Hi all,
I *think* I got it....comments please.
remote_smtp_local:
driver = smtp
interface = ${lookup dnsdb{a=${lookup
dnsdb{mxh=$sender_address_domain}}}}
helo_data = $sender_address_domain
return_path_add = true
debug_print = "\n Transport: remote_smtp_local \n \
Destination: $local_part@$domain \n \
Sent VIA: ${lookup dnsdb{a=${lookup dnsdb\
{mxh=$sender_address_domain}}}}\n
\
Hello: $sender_address_domain \n"
remote_smtp_alias:
driver = smtp
helo_data = $parent_domain
interface = ${lookup dnsdb{a=${lookup
dnsdb{mxh=$parent_domain}}}}
return_path_add = true
debug_print = "\n Transport: remote_smtp_alias \n \
Destination: $local_part@$domain \n \
Sent VIA: ${lookup dnsdb{a=${lookup dnsdb\
{mxh=$parent_domain}}}} \n \
Hello: $parent_domain \n
----- Original Message -----
From: "Grant Peel" <gpeel@???>
To: <exim-users@???>
Sent: Thursday, May 22, 2008 7:28 PM
Subject: *****SPAM***** [exim] dnsdb coversion
> Hi all,
>
> In the transport below, I am looking for the a record, so that I can set
> the
> outgoing inerface to that record (ip).
>
> But I have some domains that the a record is not in our servers, so I
> would
> like to do an mx lookup instead, then, convert the mx record to an IP.
>
> Any idea how?
>
> remote_smtp_alias:
> driver = smtp
> helo_data = $parent_domain
> interface = ${lookup dnsdb{a=$parent_domain}{$value}{0.0.0.0}}
> return_path_add = true
> debug_print = "\n Transport: remote_smtp_alias \n \
> Destination: $local_part@$domain \n \
> Sent VIA: ${lookup
> dnsdb{a=$parent_domain}{$value}{0.0.0.0}} \
> Hello: $parent_domain \n"
>
> TIA,
>
> -Grant
>
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>
>