Cpanel - SpamAssassin And DnsResolver.pm

If spamd is showing the following errors:

[~]# /usr/bin/spamd
[8887] error: Error creating a DNS resolver socket: Invalid argument at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/DnsResolver.pm line 202.
Error creating a DNS resolver socket: Invalid argument at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/DnsResolver.pm line 202.

Then to correct the issue you will need to check /etc/resolv.conf and make sure that the namservers listed are using the nameserver's ips and not the domain name.

THE WRONG WAY: 

[~]# cat /etc/resolv.conf.broken
nameserver ns1.bodega3.com
nameserver ns1.bodega3.net
nameserver ns1.soluciones3.com

THE CORRECT WAY: 

[~]# cat /etc/resolv.conf
nameserver 216.234.234.30
nameserver 12.96.160.115

Once the above changes have been made all you should need to due is the restart spamd.