Page 1 of 1
Spamassasin, couple of issues
Posted: Wed Jan 14, 2009 3:09 am
by kejpa
Hi,
I've read (and understood, I think

)
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
Posted: Wed Jan 14, 2009 9:41 am
by RSisco
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.
Posted: Wed Jan 14, 2009 10:38 am
by kejpa
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
Posted: Wed Jan 14, 2009 10:46 am
by RSisco
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).
Posted: Wed Jan 14, 2009 11:00 am
by kejpa
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
Posted: Wed Jan 14, 2009 11:06 am
by RSisco
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
Posted: Wed Jan 14, 2009 3:00 pm
by kejpa
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
Posted: Wed Jan 14, 2009 3:15 pm
by RSisco
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:
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.

Posted: Wed Jan 14, 2009 5:36 pm
by kejpa
Hi,
there's 3 instances of spamd running but none of spamass-milter.
is equal to
I guess ?
But there are no script for
Code: Select all
/etc/init.d/spamass-milter restart
Strange...
/Kjell
Posted: Wed Jan 14, 2009 5:40 pm
by RSisco
Now's the time for me to bow out and let someone else help.

Posted: Thu Jan 15, 2009 11:06 am
by kejpa
RSisco wrote:Now's the time for me to bow out and let someone else help.

Ok,
thanks a lot!
Do you have any clues re the two other issues I had?
/Kjell
Posted: Thu Jan 15, 2009 11:16 am
by RSisco
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.
Re: Spamassasin, couple of issues
Posted: Tue Feb 03, 2009 9:48 am
by kejpa
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: **:
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

)
http://www.scalix.com/wiki/index.php?ti ... amAssassinand 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