Check if an IP address is allowed to send an e-mail from the specified e-mail address

spfquery

  • Query Sender Policy Framework records to validate e-mail senders.
    More information: <https://www.libspf2.org/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

spfquery -ip {{8.8.8.8}} -sender {{[email protected]}}

click the source code to copy install spfquery on any operating system with command-not-found.com