I installed SpamAssassin as per the documentations available at
the
spamassassin.org. I installed all the dependent modules and it installed fine w/o any error, I checked and verified using the command listed in the USAGE file i.e. #Mail-SpamAssassin-2.60# spamassassin -t < sample-nonspam.txt > nonspam.out #Mail-SpamAssassin-2.60# spamassassin -t < sample-spam.txt > spam.out And it worked as desired!! <fine>Then as I wanted to use it site-wide I followed the Instructions as per the USAGE and created a .procmailrc file in my home directory to test it with myself first.Then to run it on automatically I copied the script related to me in the init.d #cp redhat-rc-script.sh /etc/rc.d/init.d/spamd.sh
I also made sure that my ~/.procmailrc in my home dir has |spamc instead of |spamassassin. and also all the PATH are correct.After this I started the spamd by:- #/etc/rc.d/init.d/spamd.sh start It started fine and I could see it in
ps-auxw| grep spamd as: -#root 11235
0.0 6.7 18684 17356 ? S 03:30 0:02
/usr/local/bin/spamd -d -c -a -m5 -H
As directed I did all the configuration of spamd with "root".Now when
I go to verify it by
#/etc/rc.d/init.d/spamd.sh status I get the error:-
#spamd is stopped
Also when I do
#/etc/rc.d/init.d/spamd.sh stop
I get the error as :-
#Shutting down spamd: ERROR!
And not to mention it does not work:-I am using linux which
is
very similar to Red-hat (Cobalt Qube 3) and I am using sendmail as MTA and procmail as MDA..Any help will be welcomed, I did a good search on this on spamassassin lists, I can find the people who have such error but none of the solution worked for them and for me too.I have already done basic trouble shooting by checking port used by spamd by netstat -lp and it indeed uses the desired port 783 with no conflict. After this I tried some other way around :-
I created a user spamd.
ran spamassassin with spamd -C /etc/mail/spamassassin -d -u spamd
It didn't help much.
When I see the logs in /var/log/maillog, I can see spamd in action for
every mail. It gives clear and 0.0/5 possible points to every mail. I checked by sending some mails to myself which were having "spam content" but they were not filtered out. Any Ideas!!! I think spamd is installed and working fine. I need to so something to tweak with the setting. But doesn't that has to be by default. I have already made a local.cf file for me by a generator tool and put it is /etc/mail/spamassassin. Regards, Rajdeep |