Page 1 of 1

Spamass-milter problem

Posted: Fri Jun 12, 2009 12:19 am
by winston2002
When I installed the Spamass-milter, there is no .sock file.
When I tried the function spamass-milter -f -p /var/run/spamass.sock. A file is created but it is empty.
Each time I start the system, there is a warning for sendmail.
Can not locate spamass.sock file.
Anyone can help me?

Thanks

Re: Spamass-milter problem

Posted: Fri Jun 12, 2009 10:07 pm
by les
winston2002 wrote:When I installed the Spamass-milter, there is no .sock file.
When I tried the function spamass-milter -f -p /var/run/spamass.sock. A file is created but it is empty.
Each time I start the system, there is a warning for sendmail.
Can not locate spamass.sock file.
Anyone can help me?

Thanks


what OS are you running?

where did you get the spamass-milter rpm from?

Re: Spamass-milter problem

Posted: Mon Jun 15, 2009 3:20 am
by winston2002
I am using CentOS 5.0 and spamass-milter comes from http://dag.wieers.com/rpm/packages/spamass-milter/

Re: Spamass-milter problem

Posted: Mon Jun 15, 2009 6:15 pm
by les
winston2002 wrote:I am using CentOS 5.0 and spamass-milter comes from http://dag.wieers.com/rpm/packages/spamass-milter/


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.sock

So, 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.

Re: Spamass-milter problem

Posted: Tue Jun 16, 2009 3:54 am
by winston2002
Thanks for that! I checked my system and found my spamass-milter and sendmail.cf are pointing to the same .sock file.
I think that should be able to work.

Thanks again for Great help!