1

Topic: whitelist/blacklist

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.3
- Linux/BSD distribution name and version:  CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

Hi  all,
I tried to search the Forum but cannot find a related function to do so. Thus, I have to ask even if this has probably been answered already:

Using iRedMail 0.9.3, I cannot find documentation here on how to whitelist/blacklist sender domains, for specific receiving domains on my server, e.g. allow mails from angel.co to  be accepted by blaha.at, but not by blaha.cc, regardless what their spam level or server reputation is.

please advise!

many thanks in advance

Andy

----

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

2

Re: whitelist/blacklist

Try this tutorial:
http://www.iredmail.org/docs/manage.ire … acklisting

3

Re: whitelist/blacklist

ZhangHuangbin wrote:

Try this tutorial:
http://www.iredmail.org/docs/manage.ire … acklisting

Thank you Zhang, I tried but it seems the mentioned python scripts were only brought in with 0.9.4, I cannot find it.
best
Andy

4

Re: whitelist/blacklist

How about upgrade iRedAPD to the latest version (1.9.1)?
http://www.iredmail.org/docs/upgrade.iredapd.html

5 (edited by ablaha 2016-06-29 13:31:37)

Re: whitelist/blacklist

ZhangHuangbin wrote:

How about upgrade iRedAPD to the latest version (1.9.1)?
http://www.iredmail.org/docs/upgrade.iredapd.html

bit scared of this because I cannot find which version I am using right now and do not know whether this has an Impact on the version of iredmail (where upgrading seems to be slightly more of an effort)

6

Re: whitelist/blacklist

You can check your iredapd version with command: "ls -l /opt".

7

Re: whitelist/blacklist

Thank you Zhang!
I'll try this. What about iRedMail as such? Nothing to be changed there after upgrading iRedAPD?

8

Re: whitelist/blacklist

upgraded to iRedAPD 1.9.1, ran wblist_admin.py --list --whitelist, this is the outcome:

[root@mail ~]# /opt/iredapd/tools/wblist_admin.py --list --whitelist
/opt/iredapd/tools/wblist_admin.py: line 4: import: command not found
/opt/iredapd/tools/wblist_admin.py: line 5: import: command not found
/opt/iredapd/tools/wblist_admin.py: line 6: import: command not found
/opt/iredapd/tools/wblist_admin.py: line 8: os.environ[LC_ALL]: command not found
/opt/iredapd/tools/wblist_admin.py: line 10: syntax error near unexpected token `('
/opt/iredapd/tools/wblist_admin.py: line 10: `rootdir = os.path.abspath(os.path.dirname(__file__)) + '/../''

ideas?

9

Re: whitelist/blacklist

ablaha wrote:

upgraded to iRedAPD 1.9.1, ran wblist_admin.py --list --whitelist, this is the outcome:

[root@mail ~]# /opt/iredapd/tools/wblist_admin.py --list --whitelist
/opt/iredapd/tools/wblist_admin.py: line 4: import: command not found
/opt/iredapd/tools/wblist_admin.py: line 5: import: command not found
/opt/iredapd/tools/wblist_admin.py: line 6: import: command not found
/opt/iredapd/tools/wblist_admin.py: line 8: os.environ[LC_ALL]: command not found
/opt/iredapd/tools/wblist_admin.py: line 10: syntax error near unexpected token `('
/opt/iredapd/tools/wblist_admin.py: line 10: `rootdir = os.path.abspath(os.path.dirname(__file__)) + '/../''

ideas?

OK, sorted. python scripts need  to start with #!/usr/bin/env python

10

Re: whitelist/blacklist

ablaha wrote:

I'll try this. What about iRedMail as such? Nothing to be changed there after upgrading iRedAPD?

No. Just make sure you have iRedAPD enabled in Postfix parameters: smtpd_recipient_restrictions, smtpd_end_of_data_restrictions.