Closed greg-minshall closed 1 year ago
Yes, it's complicated ;) But in this case you are right and I think the best we can do is fix these things as they come up. This is done now (the patch will show up on the github mirror in a few hours).
thanks!
hi.
currently
net_open_socket()
in net.c, ifgetaddrinfo(3)
returns non-zero, returns NET_EHOSTNOTFOUND, which, iiuc, gets mapped to anmsmtp
exit status ofEX_NOHOST
.i wonder if
get addrinfo
returns, e.g.,EAI_AGAIN
, maybenet_open_socket()
should instead return something that would map toEX_TEMPFAIL
, the same as when trying to connect to the host fails (i.e., returnNET_ECONNECT
).i'm guessing this issue of different sendmail return codes, when to pass which, how to respond to which, is, umm, complicated.
cheers.