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!
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!
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...
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
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
You do have to configure MailScanner to delete spam, you know. Otherwise it simply tags spam for you to filter at the client end.Originally Posted by coalescefl
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
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...
Kick me to get there.
Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!
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.