Szerző: Phil Pennock Dátum: Címzett: exim-users Tárgy: Re: [exim] local and remote smtp server
On 2013-09-15 at 11:23 +0200, Christoph (Stucki) von Stuckrad wrote: > As far as I understand this, it is not possible
> to select the outgoing IP from 'only one instance'
> of an exim-daemon (which is, why I did not use
> the concept at the end, but use only one IP now).
On the SMTP Transport used ("remote_smtp"?) set the `interface` option.
Despite being called "interface", it's actually a list of IP addresses
and the first interface of the correct address family (IPv4 or IPv6)
found is used.
See also $sending_ip_address which is defined for the duration of the
transport.
----------------------------8< cut here >8------------------------------
# in the first section, amongst the macros:
OUTBOUND_IPADDRESS=<; 2001:db8::48:4558:736d:7470 ; 192.0.2.5
OUTBOUND_HELONAME=mx.example.org
#
# then later in the config file