On Sat, Nov 08, 2025 at 10:26:27AM +0300, Evgeniy Berdnikov via Exim-users 
wrote:
>  As log shows, you are using "interface" option to bind local_ip to
>  mail1.merlins.org = 209.81.13.136.
 
yes. I have 2 computers that can use this IP and whichever is master
takes it over with an IP alias and IP routes to force outbound traffic
via that IP instead of the main one.

I thought of another debugging idea since yesterday and it worked:
/usr/sbin/exim4 -bdf -q30m -oX 25:587:10025 -d+all 2>&1 | tee /var/tmp/exim4 | 
grep --color=auto -10 'Cannot assign requested address' 

08:38:33 243601 2607:f8b0:4002:c0c::1a in serialize_hosts? no (option unset)
08:38:33 243601 delivering 1vHlxR-000000011MU-2qEA to smtp.google.com 
[2607:f8b0:4002:c0c::1a] ([email protected])
08:38:33 243601 set_process_info: 243601 delivering 1vHlxR-000000011MU-2qEA to 
smtp.google.com [2607:f8b0:4002:c0c::1a
]/NULL ([email protected])
08:38:33 243601 2607:f8b0:4002:c0c::1a in hosts_require_dane? no (option unset)
08:38:33 243601 lack of DNSSEC traceability precludes DANE
08:38:33 243601 2607:f8b0:4002:c0c::1a in hosts_pipe_connect? no (option unset)
08:38:33 243601 Connecting to smtp.google.com [2607:f8b0:4002:c0c::1a]:25 ...
08:38:33 243601 try option dscp
08:38:33 243601  2607:f8b0:4002:c0c::1a in hosts_try_fastopen?
08:38:33 243601  2607:f8b0:4002:c0c::1a in hosts_try_fastopen? no (end of list)
08:38:33 243601  failed: Cannot assign requested address
08:38:33 243601 LOG: MAIN
08:38:33 243601   H=smtp.google.com [2607:f8b0:4002:c0c::1a] Cannot assign 
requested address
08:38:33 243601 set_process_info: 243601 delivering 1vHlxR-000000011MU-2qEA: 
just tried smtp.google.com [2607:f8b0:400
2:c0c::1a]/NULL for [email protected]: result DEFER

So the problem seems to be IPv6 and the fact that my servers are not configured
to do IPv6.
magic:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 2c:cf:67:de:ad:5e  
          inet addr:209.81.13.137  Bcast:209.81.13.143  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:87293002 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83367741 errors:0 dropped:12 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11240885470 (10.4 GiB)  TX bytes:212884475067 (198.2 GiB)
          Interrupt:115 

eth0:0    Link encap:Ethernet  HWaddr 2c:cf:67:de:ad:5e  
          inet addr:209.81.13.136  Bcast:209.81.13.136  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:115 

Now I'm a bit surprised that exim would prefer IPv6, fail, and not fallback to 
IPv4

Also, if interface is set to an IPv4 address in the config, would would exim
even try to do IPv6 and then, indeed, fail?

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
 
Home page: http://marc.merlins.org/                       | PGP 7F55D5F27AAF9D08

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to