1

Topic: Virtual user spam check

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: CentOS Linux release 7.4.1708
- 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.
====

Hello!

Is there a way to use custom spam tag level for alias accounts?

----

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

2

Re: Virtual user spam check

You can try to add a record in "amavisd.policy" for this alias account.

3

Re: Virtual user spam check

This works for exiting users (not in vmail.forwardings).

4

Re: Virtual user spam check

st.letov wrote:

This works for exiting users (not in vmail.forwardings).

Sorry, what does this mean?
Does it work for "alias account"?

5

Re: Virtual user spam check

For example:
global: sa_tag2_level=6;
email account: test@example.com;
alias account in vmail.forwardings: alias.test@example.com -> test@example.com;

If in amavisd.policy only two policies: global (tag2_level=6) and for alias.test@example.com (tag2_level=3),
than for messages addressed to test@example.com spam level sets =6;
but if set tag level for test@example.com than its OK.

I want to define tag2_level for alias.test@example.com.

6

Re: Virtual user spam check

We have "smtp-amavis_destination_recipient_limit = 1" in Postfix main.cf, so Postfix expands alias account to members before piping email to Amavisd for spam/virus scanning. This way Amavisd gets the alias member email address as recipient.

7

Re: Virtual user spam check

Also the "no_address_mappings" in /etc/postfix/master.cf, for transport "127.0.0.1:10025".

8

Re: Virtual user spam check

Finally, I disabled no_address_mappings  and added proxy filter to master.cf;

smtpd     pass  -    -    n    -    -    smtpd
  -o smtpd_proxy_filter=127.0.0.1:10026
  -o smtpd_client_connection_count_limit=10

And this works! Thanks.