duluxoz via Postfix-users:
> `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`
To wrap up this thread:
The error message needs to be fixed. smtpd_peer_hostaddr_to_sockaddr()
converts from string to binary form, not binary to string. The
incorrect text was copied and pasted from a different place.
In the future, Postfix will log instead:
fatal: smtpd_peer_hostaddr_to_sockaddr: cannot convert client
address 'xxx' port 'yyy' to binary: Servname not supported
for ai_socktype
Where xxx is the client IP address (in IPv4 or IPv6 notation) and yyy
is the numerical port. That will porovide a clue why the call failed.
Second, I'll see if we can avoid this smtpd_peer_hostaddr_to_sockaddr()
call, as the HaProxy v2 protocol already provides the binary form (unlike
the v1 protocol which is string based).
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]