ARSoft.Tools.Net - C# DNS client/server, SPF and SenderID Library
SPF/SenderIP Validation
Get result for a SPF validation
Copy Code
var validator = new SpfValidator()
{
    HeloDomain = DomainName.Parse("example.com"),
    LocalDomain = DomainName.Parse("receivingmta.example.com"),
    LocalIP = IPAddress.Parse("192.0.2.1")
};

SpfQualifier result = validator.CheckHost(IPAddress.Parse("192.0.2.200"), DomainName.Parse("example.com"), "sender@example.com").Result; 

 

Get result for a SenderID validation
Copy Code
var validator = new SenderIDValidator()
{
    HeloDomain = DomainName.Parse("example.com"),
    LocalDomain = DomainName.Parse("receivingmta.example.com"),
    LocalIP = IPAddress.Parse("192.0.2.1"),
    Scope = SenderIDScope.MFrom
};

SpfQualifier result = validator.CheckHost(IPAddress.Parse("192.0.2.200"), DomainName.Parse("example.com"), "sender@example.com").Result; 

 

 


© 2010-2015 Alexander Reinert. All Rights Reserved.

Send Feedback


This documentation was created using Document! X