2010/3/8 <[email protected]>: > Hi - hopefully this is an appropriate place to ask this: > > jSPF doesn't seem to fall back to parent domains by default (e.g. > [email protected] gives SPF-none, since there is no record for > orders.amazon.com). In looking through the code, i was trying to understand > how to enable this function. Am i correct that something like: > > my_defaultSPF.getFallbackPolicy(); > > ...is enough to "activate" fallback? (it seems to initialize the otherwise > null-by-default fallback policy object, which i see no other obvious way to > initialize through an API).
getFallbackPolicy().addEntry(somepattern, record) activates fallback. But I don't think SPF fallback is the same you expect. Fallback allow you to define custom records for host patterns. I don't think the fallback you describe is good in any way as I have domains where the main domain publish an SPF record for that specific domain and subdomains do not publish an SPF record because mails for them is sent from many IP I can't control. BTW if you want to implement something similar you will have to create your own PolicyPostFilter and add it to the chain overriding the SPF.getPolicies() method. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
