set up & config spamassassin

Reyner said:
I got this error while doing service MailScanner start:
Starting MailScanner daemons:
incoming sendmail: exim abandoned: unknown, malformed, or incomplete option -OPrivacyOptions=noetrn
[ OK ]
outgoing sendmail: exim abandoned: unknown, malformed, or incomplete option -OPidFile=/var/run/sendmail.out.pid
[ OK ]
MailScanner: [ OK ]


Does anyone know what may cause this?

Thank you.
in /etc/rc.d/init.d/MailScanner you need to replace the lines:

INPID=/var/run/sendmail.in.pid
OUTPID=/var/run/sendmail.out.pid

with the pid files used by exim (check /var/run for the names of them)

Chris
 
Thank you!

Chris,

Thanks for your help. I finally found out what the problem is.
1. I had to upgrade my exim 4.20 to 4.24
2. Then I reinstalled MailScanner
3. I also ran spam.sh and run spamd -d

Everything works like normal.
 
Assuming that Spamassassin has been installed, try:
# spamd -d

The -d option will make spamd run in the background as daemon. Hope this helps.
 
You can use top I guess, but it will use more cpu utilization. I would recommend:

# ps aux | grep spamd
 
Yep and for other people reading this thread. They need to make sure to keep the spamcheck.pl file. I'm going to ask the devs about the functionality of this file.
 
You can put the:

/usr/bin/spamd -d

in the /etc/init.d/rc.local (or somewhere similar).

Hope this helps.
 
I get the following when trying to restart exim...
Starting exim: 2004-01-09 19:48:44 Exim configuration error in line 530:
transport spamcheck: cannot find transport driver "accept"
[FAILED]

# Spam Assassin
begin transports

spamcheck:
driver = accept
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"
retry_use_local_part
transport = spamcheck
no_verify

----edit----
moved from transports section to directors configuration, exim restarts correctly.
----edit 2----
Now I am unable to recieve mail, help!
 
Last edited:
Fireye said:
----edit 2----
Now I am unable to recieve mail, help!

An obvious suggestion - revert the chnages you made to exim temporarily.

With the information you provided I have no idea why mail is not working, is there anything in your maillog?

Chris
 
Well the spamd is running good at my server.

Can someone send me an email, which is recognize as spam by SpamAssassin to see if this software works.

Please send it to [email protected].

Thanks.

P.S.
I can't find the file /etc/init.d/rc.local on my system.
But I find this file in 2 other locations:
/etc/rc.d/rc.local
/etc/rc.local
Where can I put the line /usr/bin/spamd -d, so I make sure that the SpamAssassin daemon will start as each reboot.
 
Last edited:
MagnuM said:
P.S.
I can't find the file /etc/init.d/rc.local on my system.
But I find this file in 2 other locations:
/etc/rc.d/rc.local
/etc/rc.local
Where can I put the line /usr/bin/spamd -d, so I make sure that the SpamAssassin daemon will start as each reboot.

The actual file is /etc/rc.d/rc.local /etc/rc.local is simply a symlink to that file.

Chris
 
OK, thanks. Something is working now, but I am not sure it works good, until I receive an email which contain spam text, and know for sure that SpamAssassin will stop it.

By the way, I just read the header of an email which I think it was scaned with SpamAssasin:
X-Spam-Status: No, hits=0.6 required=5.0
tests=HTML_70_80,HTML_MESSAGE
version=2.55
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Should X-Spam-Level need to have a value there?
If yes how can I set this up?
 
X-Spam-Status: No, hits=0.6 required=5.0

That lets you know its running ;) it gives mail a rating based on content if its above 5 it does whatever you specify (tag as spam and pass as normal - return and dont send - drop completely dont return or pass through) you can also chnage the 5 if you wish although I advise you to keep with 5.. for a while stick with tagging also. just so you get an idea of what is and isn't going through :)

Chris
 
OK, so SpamAssassin is working good, I even test it with some spam messages, but I want to know how can this software automaticaly remove the emails which are detected as spam, because now I am still receiving those emails with the specifications in the message that tell me: "This messsage is probaly spam ..."?

Thanks.
 
So, is there anyone who can tell me how to configure my mail server to delete the mesages detected as spam by SpamAssassin.
Thanks.
 
Just learned this today ...

In the /etc/MailScanner/MailScanner.conf you can find:

#
# What to do with spam
# --------------------

Here, you can set:

Spam Actions = delete

This should delete spam messages.

Best regards,

Reyner
 
scanned headers

The only thing I'm seeing in the headers is "Received: from mail by name.domain.com with spam-scanned (Exim 4.24)"


how can I make it include the score and the rest of the normal stuff.

Also, wheree is the config file for spamassasin?
 
Back
Top