> @Stefano
>
> I don't set my own DNS resolver.
> Here are the relevant lines:
>
>   Log4JLogger logger = new Log4JLogger(log4jlogger);
>   DNSServiceXBillImpl dns = new DNSServiceXBillImpl( logger );
>   SPF spf = new SPF( dns, logger );
>   SPFRetriever spfRetriver = new SPFRetriever(dns);
>
> The line that triggers the error:
>   SPF1Record spfRecord = spfRetriver.getSPFRecord( domain );
>
>
> For now, I will use our actual IP on dnsserver setting and see if it helps.
> Thanks you, guys.

If you don't provide a custom resolver then DNSServiceXBillImpl
doesn't know anything about the james dnsserver.
There's no relationship between james server dnsservers and jspf,
unless you create one.

You have some alternatives:
1) make sure your "host" dns works fine (usually dnsjava fallback to
/etc/resolv.conf servers on unix)
2) alter your mailet to take dns servers as mailet configuration
parameters and make sure to pass your own servers to the
DNSServiceXBillImpl
3) alter your mailet to lookup the james dnsservice (this is different
between james 2.3 and trunk) and write a jspf DNSservice backed by the
james DNSService (I've not investigated this)

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to