1

Topic: filter by body

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx):  Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

Hello.
lately I will receive letters, inside which there are links to files with viruses. The links are different, but the body of the letters constantly contains "some text". Could someone tell me, or give instructions on how I could block the reception of such letters by phrase in the body of "some text", or at least spam level = 100 for such messages. (search on the forum leads to rather old topics)

----

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

2

Re: filter by body

You need to define custom SpamAssassin rules in /etc/mail/spamassassin/local.cf, it contains few samples (commented out), you can use them as a start.

FYI: https://wiki.apache.org/spamassassin/WritingRules

3

Re: filter by body

Thanks! It works.
I thought that for sql this is done somewhere else