1

Topic: Disable spam virus scanning for outgoing mails

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: [iRedAdmin-Pro    v1.9.2 (MySQL)]
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Linux/BSD distribution name and version:  centos 6
- Related log if you're reporting an issue:
====

Hello.
I'm reposting this question, please excuse me, but following the doc I can not get what I'm trying to do.

I need the system checking spam on income mails, but not on outgoing ones.

The doc (http://www.iredmail.org/docs/disable.sp … mails.html) states to set some variables on amavisd.conf section $policy_bank{'MYUSERS'}.

Even though I set 1 to those vars, outgoing mails is still checked and for some reason sent to quarantine.
I added the domains to @local_domains_maps, as well.

Thank you so much,
Jorge.

2

Re: Disable spam virus scanning for outgoing mails

Dear Jorge,

Please show us what you modified in amavisd.conf. and show us mail headers of this quarantined mail.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Disable spam virus scanning for outgoing mails

Hi!

Sure, here it is:

$policy_bank{'MYUSERS'} = {
    # declare that mail was submitted by our smtp client
    originating => 1,

    # enables disclaimer insertion if available
    allow_disclaimers => 1,

    # notify administrator of locally originating malware
    virus_admin_maps => ["postmaster\@$mydomain"],
    spam_admin_maps => ["jminassian\@jnfnet.com.ar"],
    bad_header_admin_maps => ["postmaster\@$mydomain"],
    banned_admin_maps => ["postmaster\@$mydomain"],

    # notify sender of malware
    warnbadhsender => 0,
    ## warnbannedsender => 1,
    warnbannedsender => 0,

    # forward to a smtpd service providing DKIM signing service
    #forward_method => 'smtp:[127.0.0.1]:10027',

    # force MTA conversion to 7-bit (e.g. before DKIM signing)
    smtpd_discard_ehlo_keywords => ['8BITMIME'],

    # don't remove NOTIFY=SUCCESS option
    terminate_dsn_on_notify_success => 0,
    terminate_dsn_on_notify_success => 0,

    # don't perform spam/virus/header check.
    bypass_spam_checks_maps => [1],
    bypass_virus_checks_maps => [1],
    bypass_header_checks_maps => [1],

    # allow sending any file names and types
    bypass_banned_checks_maps => [1],

    # Quarantine clean messages
    #clean_quarantine_method => 'sql:',
    #final_destiny_by_ccat => {CC_CLEAN, D_DISCARD},
};

BUT ...

If I set  @local_domains_maps = ( [".$mydomain"] ); then all mails (incoming or outgoing) is spam-checked

If I set @local_domains_maps = ( [".$mydomain"], "qequengrande.com.ar", "agrotecnicajnf.com.ar");  then no checking is performed at all (neither incoming nor outgoing) so no quarantine at all appears.

I will change @local_domains_maps = just now to get some quarantines so I can get your some headers.

Thank you so much.
Jorge.

4

Re: Disable spam virus scanning for outgoing mails

comintech wrote:

If I set @local_domains_maps = ( [".$mydomain"], "qequengrande.com.ar", "agrotecnicajnf.com.ar");  then no checking is performed at all (neither incoming nor outgoing) so no quarantine at all appears.

You set a incorrect value. it should be:

@local_domains_maps = ( [".$mydomain", "qequengrande.com.ar", "agrotecnicajnf.com.ar"]);

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: Disable spam virus scanning for outgoing mails

i have the same problem and i have this configuration in /etc/amavisd/amavisd.conf

# Postfix will re-route mail from authenticated users to this port.
$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = {
    originating => 1,         # declare that mail was submitted by our smtp client
    allow_disclaimers => 1,   # enables disclaimer insertion if available
    enable_dkim_signing => 1,

    # notify administrator of locally originating malware
    spam_admin_maps  => ["root\@$mydomain"],
    # notify administrator of locally originating malware
    virus_admin_maps => ["root\@$mydomain"],
    spam_admin_maps  => ["root\@$mydomain"],
    bad_header_admin_maps => ["root\@$mydomain"],
    banned_admin_maps => ["root\@$mydomain"],
    warnbadhsender   => 0,
    warnbannedsender => 0,

    # force MTA conversion to 7-bit (e.g. before DKIM signing)
    smtpd_discard_ehlo_keywords => ['8BITMIME'],
    terminate_dsn_on_notify_success => 0,  # don't remove NOTIFY=SUCCESS option

    # Bypass checks
    bypass_spam_checks_maps => [1],    # don't check spam
    bypass_virus_checks_maps => [1],   # don't check virus
    bypass_banned_checks_maps => [1],  # don't check banned file names and types
    bypass_header_checks_maps => [1],  # don't check bad header
};

6

Re: Disable spam virus scanning for outgoing mails

i want disabled check antivirus,spam, etc etc from my mail outgoing

7

Re: Disable spam virus scanning for outgoing mails

You replied to a 6 years old thread. Please create a new topic and clearly explain your situation or issue.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee