1

Topic: whitelisting not working

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I've followed a few different instructions for whitelisting and although the accounts I want to whitelist are showing up when I query wblist_admin.py these emails are still not coming through.  I've whitelisted both the email address and the IP address but still being rejected.

----

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

2

Re: whitelisting not working

qwazi wrote:

I've followed a few different instructions for whitelisting

Please follow our tutorial:
https://docs.iredmail.org/manage.iredapd.html

Also please show us the reject error message.

3

Re: whitelisting not working

While reading this tutorial, it says that the amavisd_wblist plugin must be listed in plugins in the setting.py file.  My settings.py file only shows wblist_rdns.  This is a default install.  Shouldn't amavis be included?  If not, how to resolve?  Need white/black list control.

4

Re: whitelisting not working

Default setting should have few plugins enabled, like below:

plugins = ["reject_null_sender", "wblist_rdns", "reject_sender_login_mismatch", "greylisting", "throttle", "amavisd_wblist", "sql_alias_access_policy"]

Order of plugin names doesn't matter, iRedAPD will handle it internally.

5

Re: whitelisting not working

ZhangHuangbin wrote:

Default setting should have few plugins enabled, like below:

plugins = ["reject_null_sender", "wblist_rdns", "reject_sender_login_mismatch", "greylisting", "throttle", "amavisd_wblist", "sql_alias_access_policy"]

Order of plugin names doesn't matter, iRedAPD will handle it internally.

OK, so if my file doesn't have "avavisd_wblist"  should I just add the entry in the plugins line or does it have to be installed first?

6

Re: whitelisting not working

Just add the plugin name in "plugins =", then restart iredapd service.

7 (edited by qwazi 2017-12-07 06:35:28)

Re: whitelisting not working

I added the entry to the plugins line but I'm getting some conflicting info.


when I queried the whitelist the first time:

root@mail:/opt/iredapd/tools# python wblist_admin.py --list --whitelist
* Establishing SQL connection.
No --whitelist or --blacklist specified. Exit.


And the same response when I try to add an entry:

root@mail:/opt/iredapd/tools# python wblist_admin.py --account @malabs.com --list --whitelist
* Establishing SQL connection.
* List all inbound whitelist for account: @malabs.com
* No whitelist/blacklist.


But then I queried it again and got this:

root@mail:/opt/iredapd/tools# python wblist_admin.py --list --whitelist
* Establishing SQL connection.
* List all inbound whitelist for account: @.
40.128.127.37
68.178.213.203
68.178.213.243
info@mauiwebdesigns.com
may@malabs.com

I had added these entries several days ago but It's not working because the Malabs address is still being rejected.  Why would it tell me there's no whitelist and then show those entries??

8

Re: whitelisting not working

qwazi wrote:

root@mail:/opt/iredapd/tools# python wblist_admin.py --list --whitelist
* Establishing SQL connection.
No --whitelist or --blacklist specified. Exit.

Did i remember correctly that the argument you pasted first time in this post was wrong? (--whitelist -> whtelist?)

9

Re: whitelisting not working

ZhangHuangbin wrote:
qwazi wrote:

root@mail:/opt/iredapd/tools# python wblist_admin.py --list --whitelist
* Establishing SQL connection.
No --whitelist or --blacklist specified. Exit.

Did i remember correctly that the argument you pasted first time in this post was wrong? (--whitelist -> whtelist?)

Yes but it wasn't a cut and paste.  I typed it wrong in this post.  Not in my original.

10

Re: whitelisting not working

Never mind, is it working fine now?

11

Re: whitelisting not working

ZhangHuangbin wrote:

Never mind, is it working fine now?

Sorry for the delayed response.  No, I'm still not getting email from Malabs.com

12

Re: whitelisting not working

qwazi wrote:

No, I'm still not getting email from Malabs.com

Any related (Postfix/iRedAPD) log on your server when email sent from malabs.com?