Viktor Dukhovni via Postfix-users: > On Mon, Feb 24, 2025 at 09:53:24AM -0500, Wietse Venema via Postfix-users > wrote: > > > > I need some help in interpreting the following postfix log message, > > > please (this is showing up all over the log): > > > > > > `Feb 24 17:46:55 mail postfix/smtpd[77980]: fatal: > > > smtpd_peer_hostaddr_to_sockaddr: cannot convert client address/port to > > > string: Servname not supported for ai_socktype` > > > > The getaddrinfo(3) system library function cannot convert a (presumably > > numerical IP address and numerical port) for the socket type > > SOCK_STREAM into the internal form "struct addrinfo", and returns > > the EAI_SERVICE error code. > > Given the address is from haproxy, perhaps haproxy is returning a host > address from a protocol famility (IPv4 or IPv6) that is not enabled in > Postfix. We'd then call getaddrinfo() with an address that is not > compatible with the protocol family in `hints`, perhaps eliciting a > less than clear error.
Hmm, the haproxy hadshake parser is aware of the protocols that Postfix supports, and returns an error if the handshake specifies an unsupported protocol family. I'm at a tiny screen at the moment, so I cannot immmediately check all error code paths, biut it looks like there are no tests for different inet_protocol settings. I'll add a few just to cover those error paths. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org