× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Good morning,

We have a situation where we need to lookup the SPF record for an email address before using it.

In windows, it would be something like:
nslookup -type=TXT <hostname>

In Unix, it would be something like:
dig -t txt <hostname>

For .Net, there are some projects like ARSoft.Tools.Net (also available as a NuGet Package) where you can do something like:
var spfValidator = new ARSoft.Tools.Net.Spf.SpfValidator();
var mailIpAddress = IPAddress.Parse("X.X.X.X");
var domain = "example.com";
var senderAddress = "sender@xxxxxxxxxxx";
ARSoft.Tools.Net.Spf.SpfQualifier result = spfValidator.CheckHost(mailIpAddress, domain, senderAddress);
There are multiple workarounds for different programming languages and platforms.


How can we do it on IBM i? Is there a way to check for SPF record using RPG or SQL?


TIA,

Juan Concepcion 



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.