V
V
Vladislav 21rpk2016-09-03 00:14:59
linux
Vladislav 21rpk, 2016-09-03 00:14:59

Why does Exim send messages from IPv6 when the domain is set to IPv4?

Good day to all.
Exim 4.84.
There is a domain.com mail domain.
Exim config contains the line

interface = <;${lookup{$sender_address_domain}lsearch{/etc/exim/domainips}}

In the /etc/exim/domainips file, among others, there is a line
domain.com:219.121.11.109
In fact, messages leave the server's IPv6 address.
Question: why does Exim send emails via IPv6 when IPv4 is specified in domainips and how can I fix it?
PS: There are many domains on the server with MX records on IPv6. disable_ipv6 is not considered.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav 21rpk, 2016-09-03
@vlad7rpk

Googled the thread www.gossamer-threads.com/lists/exim/users/88456.
I briefly read it. As I understand it, you need to specify ipv4 and ipv6 interface for each domain in domainips, because if Exim finds an AAAA record on the recipient, it sends via ipv6. If it is not set explicitly for this sender, it is sent through any.
So far I've decided this:

#ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
ignore_target_hosts = <; 0.0.0.0 ; 127.0.0.0/8 ; ::/0

Thus, Exim listens for incoming IPv6 addresses, but does not send through them.

D
Dmitry Shitskov, 2016-09-03
@Zarom

Whether an error existence <;in a line?
Try to display in the log what value the router receives as a result of execution

${lookup{$sender_address_domain}lsearch{/etc/exim/domainips}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question