Re: [exim] Setting Outbound Interfaces

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jaco Engelbrecht
Data:  
Para: Grant Peel
CC: exim-users
Assunto: Re: [exim] Setting Outbound Interfaces
Hi Grant,

On 3 May 2008, at 14:21, Grant Peel wrote:
> Question one: Can anyone see whats wronge with my remote_smtp_alias
> Transport?
>
> 2008-05-03 01:52:52 1JrTgN-0003e3-Qx == gmail_address@???
> <alias_on_my_server@my_server.com> R=dnslookup_alias
> T=remote_smtp_alias
> defer (-1): "64.233.171.83\n72.14.253.83\n64.233.161.83" is not a
> valid IP
> address for the "interface" option for remote_smtp_alias
> transport2008-05-03


You're doing a PTR lookup for $original_domain, which is google.com.

"interface" should be an IP address that's bound locally to your
servers' ethernet or loopback interface.

You should probably use the recipient domain instead (which would be
local, and which you'd be able to associate with an IP address).

> remote_smtp_alias:
>        driver = smtp
>        helo_data = ${lookup
> dnsdb{ptr=$sender_address_domain}{$value}{$primary_hostname}}
>        interface = ${lookup
> dnsdb{a=$original_domain}{$value}{nnn.nnn.nnn.nnn}}
>        return_path_add = true
>        debug_print = "Transport:       remote_smtp_alias \
>                       Destination:     $local_part@$domain \
>                       Sent VIA:        ${lookup
> dnsdb{ptr=$sender_host_address}{$value} \
>                                        {{nnn.nnn.nnn.nnn}} \
>                       Domain Info:     $domain_data"


This is how I do it:

smtp:
   driver                = smtp
   hosts_randomize
   interface             = ${extract {oif} {PARAM} }
   helo_data             = ${extract {oif_name} {PARAM} {$value}  
{$primary_hostname}}


Jaco