1

Topic: RegEx for Spam Domains and Subjects

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7-latest
- Linux/BSD distribution name and version: debian jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ldap
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Is there a way to use regular expressions in the black- and whitelists? The simple @domain or @.domain leads to lots of entries and it would be much more efficient use regex-based lists.
Another useful feature would be blocking spam with regex definitions for mail topics. Can this be done (web/config-file)?
Thank You and best regards
Christian

----

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

2

Re: RegEx for Spam Domains and Subjects

BRC wrote:

Is there a way to use regular expressions in the black- and whitelists?

Currently this is not supported by iRedAPD, but you're free to use Postfix setting for this. For example, "header_checks" can check mail header (including sender address) with PCRE regular expression support.

BRC wrote:

Another useful feature would be blocking spam with regex definitions for mail topics. Can this be done (web/config-file)?

Use Postfix setting "header_checks" too.