While this should work i have always used spamass-milter direct from
http://savannah.nongnu.org/projects/spamass-milt/ and built an rpm from source. One of its big differences is that it has a wrapper script and sets up a system user called sa-milt to run spamass-milter as. Much easier out of the box to implement a user_prefs for spamassassin etc.
Nonetheless the dag rpm should work. I believe sendmail just isn't talking to the right place.
So in /etc/sysconfig/spamass-milter what do you have?
In my case the default for the socket file is....
cat /etc/sysconfig/spamass-milter
### Override for your different local config
#SOCKET=
/var/run/spamass-milter/spamass-milter.sockSo, in my case i need to use the same socket as in that file with what goes in sendmail.mc
INPUT_MAIL_FILTER(`spamassassin', `S=unix:
/var/run/spamass-milter/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`t, b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
define(`confMILTER_MACROS_HELO',`s, {tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}')dnl
define(`confINPUT_MAIL_FILTERS', `spamassassin')
What is in your sendmail.mc?
Ofcourse yours will be slightly different as you use the dag rpm, but they must be the same.
The sock file is always 0 bytes. This is normal. And you can just "service spamass-milter start" rather than running manually.