The issue is now resolved. The directory containing the socket file must be world readable and executable. Because was in my case owned by clamscan/clamscan, spamd could not write to it. I figured this out by running spamd as root for a bit and saw that everything worked.
Thanks everyone for the various suggestions. Regards, Dan