1 (edited by zshanthi 2017-11-08 10:13:43)

Topic: [SOLVED] How to disable anti virus and anti spam in iredmail ?

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.7
- Linux/BSD distribution name and version: Ubuntu 14.04.5 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No

====

I followed the instructions present here

https://docs.iredmail.org/completely.di … assin.html

specifically the steps mentioned under the heading

"Stop virus/spam scanning, keep DKIM signing/verification and Disclaimer"

I need DKIM.

The line

content_filter = smtp-amavis:[127.0.0.1]:10024  is present in Postfix config file /etc/postfix/main.cf

I uncommented the lines

# @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code

in the file

/etc/amavis/conf.d/50-user

restarted amavis

/etc/init.d/amavis restart


I still do not receive ALL 100% emails which are sent to me. Some emails never reach me at all.

How do I test whether the antivirus and antispam has been removed ?

I also see the following lines in the file /etc/amavis/conf.d/50-user

# Enable virus check.
@bypass_virus_checks_maps = (
   \%bypass_virus_checks,
   \@bypass_virus_checks_acl,
   $bypass_virus_checks_re,
   );

# Enable spam check.
@bypass_spam_checks_maps = (
    \%bypass_spam_checks,
    \@bypass_spam_checks_acl,
    $bypass_spam_checks_re,
    );

and I have just left them there.

Can you please let me know how to receive emails whether they are SPAM or VIRUS or whatever, I need to receive ALL emails sent to me ?

Is it possible ?

For outgoing emails DKIM is working perfectly now.

Thanks

Shanthi

----

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

2

Re: [SOLVED] How to disable anti virus and anti spam in iredmail ?

I see these messages in /var/log/mail.log

So does that mean amavis is still rejecting mails ?

@MYDOMAIN.com I have configured catch-all forwards and it works.
ALL addresses @MYDOMAIN.com are valid and can receive most of the emails
noreply@MYDOMAIN.COM is a valid email address in my server

BUt sometimes I see error messages like these below

Nov  7 10:54:15 myOWNhost postfix/smtpd[6546]: NOQUEUE: reject: RCPT from smtp.someremoteserver.net[XX.XX.XXX.XX]: 450 4.1.8 <user@mail.someremoteserver.net>: Sender address rejected: Domain not found; from=<user@mail.someremoteserver.net> to=<postmaster@MYDOMAIN.COM> proto=ESMTP helo=<smtp.someremoteserver.net>


Nov  7 10:41:32 myOWNhost postfix/smtpd[6358]: NOQUEUE: reject: RCPT from mail.someremoteserver.net[xx.xx.xx.xx]: 451 4.7.1 <noreply@MYDOMAIN.COM>: Recipient address rejected: Intentional policy rejection, please try again later; from=<> to=<noreply@MYDOMAIN.COM> proto=ESMTP helo=<mail.someremoteserver.net>

one is sender address rejected and other is recepient address rejected ?
I want mails delivered to me in both cases ?
Is it possible ? What should I do ?

Thanks

3

Re: [SOLVED] How to disable anti virus and anti spam in iredmail ?

Sorry for the flurry of messages but

Can

content_filter = smtp-amavis:[127.0.0.1]:10024 which  is present in Postfix config file /etc/postfix/main.cf

can it be somehow applied only for outgoing messages ? so that I can get the dkim working only for outgoing messages and NO content filter for incoming messages ?

4

Re: [SOLVED] How to disable anti virus and anti spam in iredmail ?

I solved this as below

https://docs.iredmail.org/manage.iredapd.html

section : How to enable or disable iRedAPD plugins

specifically I removed all plugins except "throttle" and now I receive all emails.