1

Topic: Per-domain white and black lists

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.74
- Linux/BSD distribution name and version: Ubuntu 10.04 LTS
- Any related log? Log is helpful for troubleshooting.
====

How to build a per-domain whitelist and blacklist?

Regards,

Ari

----

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

2

Re: Per-domain white and black lists

If you chose to store mail accounts in OpenLDAP, then you can try the iRedAPD plugin: ldap_domain_wblist. But we don't have any interface to manage per-domain wblist.

How to enable iRedAPD plugin ldap_domain_wblist:

*) Please test it on testing server first, it's not recommend to test it on production server directly.
*) Enable this plugin in iRedAPD config file: /opt/iredapd/etc/iredapd.ini. For example:

[ldap]
...
plugins = ldap_maillist_access_policy, ldap_domain_wblist

*) Restart iRedAPD service.

You can now store per-domain wblist on LDAP domain object with attributes:
- domainWhitelistSender
- domainBlacklistSender
- domainWhitelistIP
- domainBlacklistIP

Format is the same as per-user white/blacklist. Screenshot attached for your reference:
http://screenshots.iredmail.googlecode.com/hg/iredadmin/user_profile_restrictions.png

3

Re: Per-domain white and black lists

Thanks for reply!

But I'm using MySQL as the backend. How can I do that?

Regards,

Ari

4

Re: Per-domain white and black lists

There's no per-domain white/blacklist with MySQL backend, sorry.

5

Re: Per-domain white and black lists

Just the admin panel does not offer this feature yet or it is not possible to do with MySQL?


ZhangHuangbin wrote:

There's no per-domain white/blacklist with MySQL backend, sorry.

6

Re: Per-domain white and black lists

It is not possible to do with MySQL. Sorry for the confusion.
Didn't check whether Policyd-v2 supports it or not: http://www.policyd.org/ (Policyd-v2 is shipped in Ubuntu 11.10)