Re: [exim] How to choose the outgoing IPs for an E-Mail

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Luca Bertoncello
Datum:  
To: exim-users
Betreff: Re: [exim] How to choose the outgoing IPs for an E-Mail
Jeremy Harris <jgh@???> schrieb:

> On 2012-04-18 19:53, Luca Bertoncello wrote:
> > remote_smtp:
> >    driver = smtp
> >    helo_data = $smtp_active_hostname
> > interface =
> > ${extract{ips}{${lookup{$sender_address_domain}lsearch{/etc/exim/mailouts}{<;
> > 84.200.210.163 ; 2001:1608:10:24:1::1}}}}

> >
> > Unfortunately, it does not work...
> > It will always used an IP I didn't give in any configuration...
>
> First, is it using that transport? What do the "T=" portions of your
> delivery lines in the logs say?


Hi, Jeremy!

I use an smtp-transport...

I tried this, now:

interface =
${lookup{$sender_address_domain}lsearch*{/etc/exim/mailouts}{$value}{}}

Using a file like this:

lucabert.com: <; 84.200.210.163 ;
*: <; 84.200.210.163 ; 2001:1608:10:24:1::1

Now the problem is, that, if I try to send an E-Mail from lucabert.com, Exim
tries to use an IPv6, even if I just gived an IPv4...

What am I doing wrong?

Thanks
Luca Bertoncello
(lucabert@???)