Re: [exim] helo_data with interface = with multiple IP's

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dan_Mitton
Dátum:  
Címzett: J-P Human
CC: exim-users
Tárgy: Re: [exim] helo_data with interface = with multiple IP's
JP,

Try reading the documentation section on the SMTP transport (
http://www.exim.org/exim-html-current/doc/html/spec_html/ch30.html ), in
particular the helo_data and interface sections. You might want to try
using $sending_ip_address, as mentioned in the helo_data section, rather
then $interface_address, which is really $received_ip_address, as
mentioned in the interface section.

Dan



Sent by:        exim-users-bounces@???
To:     exim-users@???
cc:      (bcc: Dan Mitton/YD/RWDOE)
Subject:        [exim] helo_data with interface = with multiple IP's
LSN: Not Relevant
User Filed as: Not a Record


Hi

I'm having trouble getting Exim (4.69) to use the correct outgoing helo
string when sending via specific IP Addresses.

My system has 2 IP Addresses, 1.2.3.4 and 1.2.3.5 (for this example)

I want the helo name for 1.2.3.4 to be hostname.1234 and for 1.2.3.5 to
be hostname.1235 when Exim is told to send out via that IP.

I have in my config:

#Global section
smtp_active_hostname = ${if eq{$interface_address}{1.2.3.5}\
{hostname.1235}{hostname.1234}}

#Transports
remote_smtp:
driver = smtp
interface =
${lookup{$sender_address_domain}lsearch{/etc/exim4/interfaces}
{$value}{213.133.123.5}}
helo_data = ${if eq{$interface_address}{1.2.3.5}\
{hostname.1235}{hostname.1234}}

The Global section seems to work fine and the interface lookup in the
remote_smtp transport also works fine, however the helo_data does not
return the desired string it always returns hostname.1234 even if the
sender domain is setup in /etc/exim4/interfaces.

I have spent a fair amount of time trying various options so any help
would be appreciated. I do have a work around using multiple transports
and routers but it seems a bit excessive.

Thanks and Regards
J-P Human

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