1 (edited by Cthulhu 2020-01-15 05:14:05)

Topic: SPAM checks for originating mails

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Is it possible to differ between sending and receiving spam mail?

i want to archive the following:

- receive all incoming mails regardless off spam/bad header/virus/banned files, but dont send DSN if it is spam/virus
- reject sending spam/bad header/virus (reject, not bounce) with specified spam levels

Currently the spam settings are global, just want to know how i can archive different settings for originating mails (or for another policy bank)

----

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

2

Re: SPAM checks for originating mails

i altered the policy bank for igigination to the following:

$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = {
    originating                            => 1,
    allow_disclaimers                    => 1,
    enable_dkim_signing                    => 1,

    virus_admin_maps                    => ["root\@$mydomain"],
    spam_admin_maps                        => ["root\@$mydomain"],
    bad_header_admin_maps                => ["root\@$mydomain"],
    banned_admin_maps                    => ["root\@$mydomain"],
   
    final_spam_destiny                  => D_REJECT,
    final_virus_destiny                    => D_REJECT,
    final_banned_destiny                => D_PASS,
    final_bad_header_destiny            => D_REJECT,
   
    sa_spam_modifies_subj                 => 1,
    sa_spam_subject_tag                 => '[ SPAM ] ',
    undecipherable_subject_tag             => '[ UNCHECKED ] ',
    #subject_tag_maps_by_ccat{+CC_BANNED}=> '[ BANNED ] ',
   
    bypass_spam_checks_maps            => [0],
    bypass_virus_checks_maps        => [0],
    bypass_banned_checks_maps        => [0],
    bypass_header_checks_maps        => [0],
   
    spam_tag_level                      => -999,
    spam_tag2_level                 => 2,
    spam_tag3_level                 => 5,
    spam_kill_level                    => 7,
    spam_dsn_cutoff_level             => 7,
   
    warnbadhsender                    => 0,
    warnbannedsender                => 0,

    smtpd_discard_ehlo_keywords => ['8BITMIME'],
    terminate_dsn_on_notify_success => 0,   
};

But is till uses the SQL policy bank, how can i prevent this?

3

Re: SPAM checks for originating mails

You can update the policy in sql table "amavisd.policy" directly.