==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7.4 (wheezy)
- Related log if you're reporting an issue:
====
I have set up iRedMail and it is working fine sending and receiving mail.
I am having difficulty getting:
Spam headers to be added to all/any mails (only checked received, not sent)
Spam feels like it is getting through. Hard to tell without the headers from SpamAssassin.
Messages with banned attachments are coming though with the banned attachment intact.
I've tried tweaking various conf settings, but it didn't seem to help. I am the first to admit that I don't know what I am doing, but I am trying.
I found this site to help me debug/validate email system
http://www.emailsecuritycheck.net/
There are seven test mails our server will try to send:
The first mail (1/7) contains a harmless executable attachment. Even though it is harmless, it should be removed (or replaced) by your attachment blocker. Depending on the configuration of your attachment blocker, this mail may never reach you.
The next mail (2/7) contains a harmless executable attachment, the EICAR anti virus test file in a .zip archive. This file should be detected by every virus checker. Depending on the configuration of your virus checker, this mail may never reach you.
The third mail (3/7) is harmless spam message (GTUBE spam signature), and should be detected by every spam filter. Depending on the configuration of your spam filter, this mail may never reach you.
The remaining four mails (4/7 to 7/7) contain attachments disguised in different ways. Even though the attachments are harmless, they should be removed (or replaced) by your attachment blocker. Depending on the configuration of your attachment blocker, these mails may never reach you.
My email system blocked the EICAR message, but the other 6 came through to the client
My postmaster received 1 virus alert, and 5 banned contents alerts.
My postmaster did not get notified of the GTUBE test
I ran grep spam * in /etc/amavis/conf.d to give you info on my current config.
01-debian:$dspam = 'dspam';
05-domain_id:# to certain functionality, such as the addition of spam tags.
15-content_filter_mode:# You can modify this file to re-enable SPAM checking through spamassassin
15-content_filter_mode:# Please note, that anti-spam checking is DISABLED by
15-content_filter_mode:@bypass_spam_checks_maps = (
15-content_filter_mode: \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);
20-debian_defaults:$sa_spam_subject_tag = '***SPAM*** ';
20-debian_defaults:# changed added -100 check for spam flags
20-debian_defaults:#$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level
20-debian_defaults:$sa_tag_level_deflt = -100.0; # add spam info headers if at, or above that level
20-debian_defaults:$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
20-debian_defaults:$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
20-debian_defaults:$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
20-debian_defaults:$final_spam_destiny = D_BOUNCE;
20-debian_defaults:$final_bad_header_destiny = D_PASS; # False-positive prone (for spam)
20-debian_defaults: #'spamassassin.apache.org' => -3.0,
30-template_localization:# $notify_spam_sender_templ = read_text('/var/amavis/notify_spam_sender.txt');
30-template_localization:# $notify_spam_admin_templ = read_text('/var/amavis/notify_spam_admin.txt');
50-user:# Enable spam check.
50-user:@bypass_spam_checks_maps = (
50-user: \%bypass_spam_checks,
50-user: \@bypass_spam_checks_acl,
50-user: $bypass_spam_checks_re,
50-user:# $mailfrom_notify_spamadmin = "root\@$mydomain";
50-user:$mailfrom_notify_spamadmin = "changed\@change.com";
50-user:# $mailfrom_notify_spamadmin = "root\@$mydomain"; # notifications sender
50-user:$mailfrom_notify_spamadmin = "changed\@change.com"; # notifications sender
50-user:# spam_admin_maps => ["root\@$mydomain"],
50-user: spam_admin_maps => ["changed\@change.com"],
50-user: warnspamsender => 1,
50-user:$final_spam_destiny = D_PASS;
50-user:# bypass_spam_checks_maps => [1], # don't spam-check this mail
50-user:# bypass_spam_checks_maps => [1], # don't spam-check this mail
50-user:# spam_admin_maps => ["root\@$mydomain"],
50-user: spam_admin_maps => ["changed\@change.com"],
50-user: # don't perform spam/virus/header check.
50-user: #bypass_spam_checks_maps => [1],
50-user:# - 'local:spam-%i-%m', quarantine mail on local file system.
50-user:$spam_quarantine_method = undef;
50-user:#$spam_quarantine_method = 'sql:';
50-user:#$spam_quarantine_to = 'spam-quarantine';
50-user:# Modify email subject, add '$sa_spam_subject_tag'.
50-user:$sa_spam_modifies_subj = 1;
50-user:#$remove_existing_spam_headers = 0;
50-user:# Notify spam sender?
50-user:#$warnspamsender = 0;
50-user:#$notify_spam_sender_templ = read_text('/var/amavis/notify_spam_sender.txt');
50-user:#$notify_spam_admin_templ = read_text('/var/amavis/notify_spam_admin.txt');
50-user: #"spam-reporter@test.com" => { d => "test.com", a => 'rsa-sha256', ttl => 7*24*3600 },
Does anything stand out ?
I would appreciate any help.