Spamass-milter problem

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

winston2002

Spamass-milter problem

Postby winston2002 » Fri Jun 12, 2009 12:19 am

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

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Spamass-milter problem

Postby les » Fri Jun 12, 2009 10:07 pm

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?
Regards,

Les Stott

winston2002

Re: Spamass-milter problem

Postby winston2002 » Mon Jun 15, 2009 3:20 am

I am using CentOS 5.0 and spamass-milter comes from http://dag.wieers.com/rpm/packages/spamass-milter/

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Spamass-milter problem

Postby les » Mon Jun 15, 2009 6:15 pm

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

Les Stott

winston2002

Re: Spamass-milter problem

Postby winston2002 » Tue Jun 16, 2009 3:54 am

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!


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest