Spamassasin, couple of issues

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

Moderator: ScalixSupport

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Spamassasin, couple of issues

Postby kejpa » Wed Jan 14, 2009 3:09 am

Hi,
I've read (and understood, I think :wink: )
http://www.scalix.com/wiki/index.php?ti ... amAssassin
and it was good but I just can't get SpamAssasin to work :(

1. Looking in my mail.err log I'm told that
Milter (spamassassin): error connecting to filter: Connection refused by /var/run/spamass.sock

and my mailbox is flooded with spam.

2. Exactly what should the special folders be called? "Spam", "Non-Spam", "Possible Spam" am I using, but the document talks about "Ham" and "Junk e-mail" folders aswell, Reading the perl-scripts for feeding the filters also makes me confused :(

3. How do I set up the 2 rules? What conditions should be met? Currently I have set it to "Message header" contains "SPAM". But how do I set up a rule for filtering mail not marked as spam with a score above 3?

Thanks !!!
/Kjell
Last edited by kejpa on Tue Feb 03, 2009 9:36 am, edited 1 time in total.

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Wed Jan 14, 2009 9:41 am

Did you see the line in the installation Wiki (right near the top) where that same error occurred and they just changed the .sock file that they were using? Have you tried that? If you do/have it is my understanding that (if you are using spamassassin as a milter with sendmail) that your entry for spamassassin in sendmail.mc needs to point to the same .sock file. And then of course rebuild your sendmail.cf file and restart sendmail.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 14, 2009 10:38 am

RSisco wrote:Did you see the line in the installation Wiki (right near the top) where that same error occurred and they just changed the .sock file that they were using? Have you tried that?

Sorry for not trying all in the Wiki :(

I changed the line and the messages in mail.err logfile changed to

Code: Select all

local socket name /var/run/spamass-milter.sock unsafe

Better, but still not good (IMHO)
And spam still arrives in my inbox :(

Any ideas for that?

TIA
/Kjell

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Wed Jan 14, 2009 10:46 am

Sounds like permissions. chmod that file to 755 and try again. It should also be owned by the spamass-milter user (sa-milt in my case).

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 14, 2009 11:00 am

RSisco wrote:Sounds like permissions. chmod that file to 755 and try again. It should also be owned by the spamass-milter user (sa-milt in my case).

Hmmm, strange.
There is no file called "/var/run/spamass-milter.sock"

Confused :?
/Kjell

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Wed Jan 14, 2009 11:06 am

Mine is under /var/run/spamass-milter/spamass-milter.sock

Check in /etc/mail/sendmail.mc and see where it is looking for the .sock file

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 14, 2009 3:00 pm

Hi,
I'm using Suse so for me it's linux.mc but that doesn't matter :)

Looking there it says /var/run/spamass-milter.sock but the file is missing!
There is a file called /var/run/spamass.sock but if I have that in the mc-file it's connection refused, just as before :(

TIA!
/Kjell

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Wed Jan 14, 2009 3:15 pm

I'm kinda unfamiliar with this area of linux, but aren't the .sock files created when the server is ran? Are spamd and the spamass-milter running? Try:

Code: Select all

ps -A | grep spam


If not (and even if they are), try restarting them:

Code: Select all

/etc/init.d/spamassassin restart
/etc/init.d/spamass-milter restart


Since you are using Suse, your mileage may vary. :)

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 14, 2009 5:36 pm

Hi,
there's 3 instances of spamd running but none of spamass-milter.

Code: Select all

/etc/init.d/spamassassin restart

is equal to

Code: Select all

/etc/init.d/spamd restart
I guess ?

But there are no script for

Code: Select all

/etc/init.d/spamass-milter restart


Strange...
/Kjell

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Wed Jan 14, 2009 5:40 pm

Now's the time for me to bow out and let someone else help. :)

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Thu Jan 15, 2009 11:06 am

RSisco wrote:Now's the time for me to bow out and let someone else help. :)

Ok,
thanks a lot! :D

Do you have any clues re the two other issues I had?

/Kjell

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Thu Jan 15, 2009 11:16 am

Do you have any clues re the two other issues I had?


Nope. :)

We reject mail from unresolvable domains and I have Spamassassin set to Auto Learn. So we have very few spam email actually get through the filter. So I haven't bothered setting up folders to train it on.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Re: Spamassasin, couple of issues

Postby kejpa » Tue Feb 03, 2009 9:48 am

Hi again!
Doing some testing and fiddling I've now solved item#2 and #3.
#2, The folders should be called as they do in the script (of course, when thinking over it twice in retrospective ;))
#3. Spam is marked as
X-Spam-Status: Yes
,
Possible Spam is marked as
X-Spam-Status: No
If the score is above 3 there are three * after the X-Spam-Level header
X-Spam-Level: **:

:D

BUT!
How do I start Spamass-milter at startup?
I'm told that
spamass-milter: unknown service

I have to manually remove spamass-milter.sock in /var/run and then do

Code: Select all

spamass-milter -p /var/run/spamass-milter.sock -f


I'd love to have it started at startup!
Anyone?
/Kjell

I've read (and understood, I think :wink: )
http://www.scalix.com/wiki/index.php?ti ... amAssassin
and it was good but I just can't get SpamAssasin to work :(

1. Looking in my mail.err log I'm told that
Milter (spamassassin): error connecting to filter: Connection refused by /var/run/spamass.sock

and my mailbox is flooded with spam.

2. Exactly what should the special folders be called? "Spam", "Non-Spam", "Possible Spam" am I using, but the document talks about "Ham" and "Junk e-mail" folders aswell, Reading the perl-scripts for feeding the filters also makes me confused :(

3. How do I set up the 2 rules? What conditions should be met? Currently I have set it to "Message header" contains "SPAM". But how do I set up a rule for filtering mail not marked as spam with a score above 3?

Thanks !!!
/Kjell


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 2 guests