> I have to implement SPF record verification.

It would be useful addition for ICS, particularly for POP3. 
 
> But where and how can I grab SPF records? 

Using OverbyteIcsDnsQuery with DnsQueryTXT to get DNS text strings. 

Text Query for bbc.co.uk: v=spf1 ip4:212.58.224.0/19 ip4:132.185.0.0/16
ip4:78.136.53.80/28 ip4:78.136.14.192/27 ip4:78.136.19.8/29
ip4:89.234.10.72/29 ip4:89.234.53.236 ?all.ns1.rbsov.bbc.co.uk

Then parse the IP and subnet masks, check the origination IP is listed.

But many domains don't have spf records, so you may want some fuzzy logic
to check reverse DNS of the sending server, and see if it matches the
email address, ie my mail comes from mail.magsys.co.uk which is a good
match for my email address.  I've been meaning to set-up spf for years,
never got around to it. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to