On 25/2/25 16:12, Viktor Dukhovni via Postfix-users wrote:
Well, it leaves us in a not entirely satisfactory situation,
because it is still unclear what the haproxy health check
sent to Postfix, and whether it should, or should not, have
been accepted.

Nor it is clear what inet_protocols your Postfix is configured with, or
what your getaddrinfo(3) supports.

Sorry, missed that bit:

Before I found the cause of the issue, I had set (and confirmed) all three settings for inet_protocols (ipv4, ipv6, all) and the results were the same ie the error message was there no matter what inet_protocols was set to. FTR generally the LANs run IPv4 (even though they're configured duel stack) because we can't get an Internet-reachable IPv6 address from our ISPs down here in Oz - not without a *hugh* amount of hassle/expense/etc - I know, its a PITA.

I also tried setting the relevant port to a number of different vales (ie 25587, 30587, 40587, 50587, & 60587) and again, this made no difference to the error message appearing.

Sorry, I'm not in a position to compile and run (for a number of reasons) - that (raw) C-code program doesn't even exist on these boxes (yes, I know I can download it, but as i said, I'm not in a position do do this at this time) - again, sorry.

In all honesty, knowing what I know about myself I'm more inclined to put the issue down to a "Layer 8" problem (PBCAK) than anything wrong with the Postfix code - I know more than enough to be dangerous and not enough to know when I'm being dangerous until after the fact  :-)

Still, if you think there is a problem with the Postfix code than I'll bow to your obvious greater knowledge (no that's *not* /s).

If so, I'll see what I can do about the getaddrinfo.c stuff - I just don't know when that will be - again, sorry about that.

Oh, and the HAProxy health check? The relevant lines in the HAProxy config file are/were:

    backend submission_server

        option smtpchk

        server mail mail.local:25587 check send-proxy-v2

Cheers

If you are able to compile and run the program in:

     auxiliary/name-addr-test/getaddrinfo.c

with arguments as below and report the output, that'd be helpful:

     $ make getaddrinfo
     cc     getaddrinfo.c   -o getaddrinfo

     $ ./getaddrinfo 192.0.2.1
     Hostname:       192.0.2.1
     Addresses:      192.0.2.1

     $ ./getaddrinfo 2001:db8::beef
     Hostname:       2001:db8::beef
     Addresses:      2001:db8::beef

I can reproduce something similar to what you report by changing the
code to take an optional port argument, and passing a *negative* value.

     $ ./getaddrinfo 2001:db8::beef -43
     host 2001:db8::beef not found: Servname not supported for ai_socktype

Large positive values are accepted (presumbaly just use the low 16
bits).

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to