1 (edited by kazix 2017-11-15 21:50:21)

Topic: Disable amavis/spamassasin for one user

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.

Hello,
i just want create one account for catch SPAM, (example love_spam@example.com).
All messages should be delivered to this account.
How to disable all security function only for this account?

Thanks
kzx

----

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

2

Re: Disable amavis/spamassasin for one user

Choose either solution:

*) Add settings in Amavisd config file like below:

@spam_lovers_maps = ( read_hash('/etc/postfix/spam_lovers') );
@virus_lovers_maps = ( read_hash('/etc/postfix/virus_lovers') );

Then create both file with content:

user@domain.com 1

Restart amavisd service.

*) Add a spam policy for this user in SQL table "amavisd.policy". This is very easy with iRedAdmin-Pro, just go to user profile page, click tab "Spam Policy", then disable spam/virus/banned/bad-header checks. Screenshot attached.

https://docs.iredmail.org/images/iredadmin/user_profile_spampolicy.png

3

Re: Disable amavis/spamassasin for one user

Thanks, works smile

The file should be rehash-ed after update?

kzx

4

Re: Disable amavis/spamassasin for one user

You may need to reload or restart Amavisd service to let Amavisd re-read it.