1

Topic: Is it possible to white/blacklist emails only sent to a recipient?

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====

I understand how to globally whitelist or blacklist email from a domain or address via "blacklist_from email@address.com" but is it possible to use this logic: "blacklist_from spammer@spamdomain.com to email@domain.com" with the effect of blacklisting emails from that source sent to email@domain.com but allowing emails from that source to pass to everyone else @domain.com?

more_spam_to and whitelist_to would seem to allow more spam from all domains rather than just from a particular domain for a recipient.

Best regards,
Luke

2

Re: Is it possible to white/blacklist emails only sent to a recipient?

You need per-user blacklist. It's implemented in iRedAPD with plugin 'sql_user_restrictions'. Check comment in file /opt/iredapd/plugin/sql_user_restrictions.py for more details and how to populate required data.