1

Topic: Block incoming Mailadress

Hi i have Unbuntu 12.3 with cluebringer.
How can i block a incoming Mailadress ?





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

----

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

2

Re: Block incoming Mailadress

It's a little complex to achieve this with Cluebringer, but we will get it ready in next release of iRedMail.

To achieve it manually, you can try below steps:

- Create a policy: blacklisted_senders.

INSERT INTO policies (Name, Priority, Disabled, Description)                       
    VALUES ('blacklisted_senders', 8, 0, 'Blacklisted senders');

- Create a policy group:

INSERT INTO policy_groups (Name, Disabled) VALUES ('blacklisted_senders', 0);   

- Create policy member:

INSERT INTO policy_members (PolicyID, Source, Destination, Disabled)            
    SELECT id, '%blacklisted_senders', '%internal_domains', 0                   
    FROM policies WHERE name='blacklisted_senders' LIMIT 1;

- Create ACL to reject emails from certain senders:

INSERT INTO access_control (PolicyID, Name, Verdict, Data)                      
    SELECT id, 'reject_blacklisted_senders', 'REJECT', 'Blacklisted sender'     
    FROM policies WHERE name='blacklisted_senders' LIMIT 1;

- You can now reject a sender address "user@domain.com" by listing it in table 'cluebringer.policy_group_members':

INSERT INTO policy_group_members (PolicyGroupID, Member, Disabled)           
   SELECT id, 'user@domain.com', 0
   FROM policy_groups WHERE name='blacklisted_senders' LIMIT 1;

IMPORTANT NOTES:

You can block single sender address (user@domain.com), whole domain (@domain.com), IP address (xx.xx.xx.xx) or CIDR IP range (xx.xx.xx.0/24, etc) this way. But iRedMail will have 3 policies to handle different sender types (single address, whole domain, IP address and CIDR IP range): blacklisted_senders, blacklisted_domains, blacklisted_ips. The reason why we do it this way is for better management in iRedAdmin-Pro, so that admins can easily find/understand different blacklist types.

You can refer to our (DRAFT) sample file here:
https://bitbucket.org/zhb/iredmail/src/ … at=default

3 (edited by lennis 2013-12-04 02:40:24)

Re: Block incoming Mailadress

moved issue to it's own proper thread.

http://www.iredmail.org/forum/topic5777 … cards.html

4

Re: Block incoming Mailadress

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

I seem to be having an issue with the blacklisting.  I'm listing subdomains. For example: %.facebookmail.com  - 1 entry per line, in the Blacklist Records block.

I click Add -- it says it added them, but when I go to view them -- nothing is listed.

5

Re: Block incoming Mailadress

Hi lennis,

There are several tabs under Blacklisting page, can you find the one you added in other tabs?

Also, please always post your question in a new forum topic, don't hijack other's topic.

6

Re: Block incoming Mailadress

Ahh yes.. I see the tabs now, and yes -- they are being listed under the 'DNS' tab.

Thank you Zhang.