Project

General

Profile

ActionMailer with Gmail error message: "Errno::EAFNOSUPPORT (Address family not supported by protocol - socket(2))"

Added by Brice Fenske 10 months ago

Has anyone found success running Gmail using only IPv4? Due to network structure, we'd prefer to not implement IPv6 handling, so I've disabled all IPv6 network traffic on the server.

I have the configuration setup (using Gmail) and the email usually sends(>80% roughly), but occasionally emails will fail to be generated, accompanied by the mentioned error message (condensed-error.log).

OS: Debian GNU/Linux 12 (bookworm)
Ruby: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
Rails: 6.1.7.3
Webserver: Phusion Passenger(R) 6.0.17
Database: psql (PostgreSQL) 14.6