Beginning with V8.8 sendmail, it is possible to use the libwrap.a library to validate incoming SMTP connections.