1

Topic: checking spam is filtering correctly

I have set global options to quarantine Spam and Virus.
I have been running for about 1 week.
I am not seeing any spam in email being received.
iRedMail Pro Admin shows spam as 0 and virus as 0 in admin portal  interface. (screen shot)

How can I tell if the stats are not working or there really isn't any spam coming through. 


Jim McGregor

========= Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MYSQL edition.
- Linux/BSD distribution name and version: Ubuntu 16.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MYSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? YES
- Related log if you're reporting an issue:  unknown
==========

Post's attachments

Screenshot 2017-03-24 10.52.39.png
Screenshot 2017-03-24 10.52.39.png 68.64 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: checking spam is filtering correctly

Now I have real users sending and receiving I can see email coming through that is definitely spam but it is not filtering .. is there any chance of getting some advice on how to check / resolve this please.

3

Re: checking spam is filtering correctly

Please follow this tutorial first to update Amavisd config file, so that it will quarantine detected spam/virus:
http://www.iredmail.org/docs/quarantining.html

Also this tutorial for debugging purpose to check whether spam filter is working:
http://www.iredmail.org/docs/no.x-spam.headers.html

4

Re: checking spam is filtering correctly

ZhangHuangbin wrote:

Please follow this tutorial first to update Amavisd config file, so that it will quarantine detected spam/virus:
http://www.iredmail.org/docs/quarantining.html

Also this tutorial for debugging purpose to check whether spam filter is working:
http://www.iredmail.org/docs/no.x-spam.headers.html


Hi Zhang:
Thanks for the instructions.  I am a little confused by one section.
Your instructions say to update with the following
$policy_bank{'ORIGINATING'} = {
    ...
    clean_quarantine_method => 'sql:',
    final_destiny_by_ccat => {CC_CLEAN, D_DISCARD},
}

** the file 50-user section is below.
I tried to insert after enable_dkim signing => 1,
but I had an error preventing a restart of amavis.

The original code below does not include a closing } 


$policy_bank{'ORIGINATING'} = {  # mail supposedly originating from our users
    #inet_acl => [qw(127.0.0.1 [::1])],   # ORIGINATING: restrict access to these IP addresses
    originating => 1,  # declare that mail was submitted by our smtp client
     allow_disclaimers => 1,  # enables disclaimer insertion if available
     enable_dkim_signing => 1,

5

Re: checking spam is filtering correctly

jwmcgregor wrote:

Your instructions say to update with the following
$policy_bank{'ORIGINATING'} = {
    ...
    clean_quarantine_method => 'sql:',
    final_destiny_by_ccat => {CC_CLEAN, D_DISCARD},
}

I guess you didn't read the doc carefully, this setting is used to quarantine CLEAN emails. which also means all received normal emails  (not spam/virus/bad-header/banned) will be quarantined. Is this what you want?