MailScanner: How to Auto Reject E-mails Marked With SPAM?

coalescefl

Member
Aug 16, 2005
21
0
151
Does anyone know how to automatically reject E-mails marked with SPAM via SSH using MailScanner?

We have MailScanner installed, just can't figure out how to stop the SPAM from getting into the inbox....

Thank you!
 

coalescefl

Member
Aug 16, 2005
21
0
151
After one of our clients immidiatly received 3,000 SPAM messages after we setup MailScanner we removed the software. Spam Assasin is at least deleting the messages... Now Exim and Spamd are having major issues... Failing every 10 minutes or so...
 

dave9000

Well-Known Member
Apr 7, 2003
888
1
168
arkansas
cPanel Access Level
Root Administrator
Here is your solution

go into WHM, addons,MailScanner and open the mailscanner config, scroll down to this section and enter delete in the boxes


Spam Actions = delete


High Scoring Spam Actions = delete

This will automatically delete anything mailscanner marked as spam

These instructions are assuming your running chirpys paid install which I highly recommend as it will stop almost all the spam and viruses and most of the phishing mail

If you are not running the paid install of mailscanner locate the mailscanner.conf and manually edit it with your favorite editor in SSH

There are also many other options that you can edit to tweak the filters to your individual needs
 

dave9000

Well-Known Member
Apr 7, 2003
888
1
168
arkansas
cPanel Access Level
Root Administrator
you can also add this to your exim.conf to stop a lot of spam from ever being accepted into your system.

Adjust the RBL urls to suit your individual needs

check_recipient:
# Exim 3 had no checking on -bs messages, so for compatibility
# we accept if the source is local SMTP (i.e. not over TCP/IP).
# We do this by testing for an empty sending host field.
accept hosts = :

deny message = Message rejected - $sender_fullhost is in an RBL, see $dnslist_text
!hosts = +relay_hosts
!authenticated = *
dnslists = bl.spamcop.net : sbl.spamhaus.org
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
coalescefl said:
After one of our clients immidiatly received 3,000 SPAM messages after we setup MailScanner we removed the software. Spam Assasin is at least deleting the messages... Now Exim and Spamd are having major issues... Failing every 10 minutes or so...
You do have to configure MailScanner to delete spam, you know. Otherwise it simply tags spam for you to filter at the client end.
 

coalescefl

Member
Aug 16, 2005
21
0
151
Thanks for the replies guys. I was wondering if there was a guide or something to help with the MailScanner... We've since removed it because our server was acting funny, but we're thinking of trying it again possibly...
 

WhiteBear

Well-Known Member
Feb 19, 2004
53
0
156
You do have to configure MailScanner to delete spam, you know. Otherwise it simply tags spam for you to filter at the client end.
Hello Chirpy,

Where I configure the MailScanner to delete Spam?:confused:

Regards,
 

abubin

Well-Known Member
Dec 7, 2004
401
3
168
Hello Chirpy,

Where I configure the MailScanner to delete Spam?:confused:

Regards,
Look in -

/usr/mailscanner/etc/rules/spam.action.rules
/usr/mailscanner/etc/rules/spamhigh.action.rules

Each domain have it's own rules. You can change them to delete, store, default or deliver. Or any combination of them. I set them to delete and store.

This way the spams will not be delivered to the users and will also be stored in the server.