Topic: Whitelist all incoming mail by user
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version 1.5.0 MARIADB edition:
- Deployed with downloadable installer
- Linux/BSD Ubuntu 20.04.6 LTS
- Store mail accounts in which backend MySQL:
- Web server Nginx
- Manage mail accounts with iRedAdmin
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have an email address that needs delivery of every email that arrives at the server addressed to that email address.
I am sure this has been asked before but I just cannot find the right answer. So just a URL direct will be fine.
I do not want the mail to be rejected, if addressed to this 1 account, for any reason. If it hits our mail server it should be delivered to that account.
All other local recipients should still have full scanning done as normal on all incoming emails.
I tried to modify 50-user, as below, but it still scans the incoming mail for that user.
# ======================
# NO_FILTER Policy Bank
# ======================
$policy_bank{'NO_FILTER'} = {
bypass_spam_checks_maps => 1,
bypass_virus_checks_maps => 1,
bypass_banned_checks_maps => 1,
bypass_header_checks_maps => 1,
enable_dkim_verification => 0,
enable_spf_verification => 0,
spam_tag_level => undef,
spam_tag2_level => undef,
spam_kill_level => undef,
virus_kill_level => undef,
banned_kill_level => undef,
spam_quarantine_to => undef,
virus_quarantine_to => undef,
banned_quarantine_to => undef,
spam_log_level => 0,
virus_log_level => 0
};
# ======================
# MySQL Configuration
# ======================
@lookup_sql_dsn = (
['DBI:mysql:database=amavisd;host=127.0.0.1', 'User', 'Passwd']
);
$sql_select_policy = q{
SELECT IFNULL(
(SELECT 'NO_FILTER' FROM no_filter_recipients
WHERE email = '%r' LIMIT 1),
'ORIGINATING'
)
};
# ======================
# ORIGINATING Policy
# ======================
$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = {
lookup_sql_dsn => \@lookup_sql_dsn,
sql_select_policy => $sql_select_policy,
originating => 1,
allow_disclaimers => 1,
enable_dkim_signing => 1,
# Notification settings
spam_admin_maps => ["manager\@example.com"],
virus_admin_maps => ["manager\@example.com"],
bad_header_admin_maps => ["manager\@example.com"],
banned_admin_maps => ["manager\@example.com"],
warnbadhsender => 0,
warnbannedsender => 0,
smtpd_discard_ehlo_keywords => ['8BITMIME'],
terminate_dsn_on_notify_success => 0
};
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.