Topic: tld based greylisting time ?
======== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition.
- Linux/BSD distribution name and version: Ubuntu 18.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
I like the greylisting for all new/unknown incoming mail addresses, but I'd prefer different greylisting time frames for certain tlds (top-level domains), since I am still getting spam esp. from certain ones.
For example I'd like to keep greylisting of (un)named tlds like '.com' for the standard 5-15min (GREYLISTING_BLOCK_EXPIRE), but other ones like '.space' or '.review' for e.g. 1 hour).
To achive this I would probably need to extend '/opt/iredapd/plugins/greylisting.py' and can optionally create a sql table under 'iredapd' to list these tlds, but my knowledge of python is to sparse for that.
Could someone (maybe also interested in further reducing spam this way) give me some hints or code pieces to start with that approach ?
Thanks,
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.