1

Topic: iRedAdmin-Pro inbound whitelist does not work

=== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?  iRedAdmin-Pro
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,
we added the class a.b.c.d/24 in the whitelist senders section using iRedAdmin-Pro panel, but it seems doesn't work, messages are blocked by amavis.

Amavisd_wblist plugin is enabled:
# Enabled plugins.
plugins = ["reject_null_sender", "wblist_rdns", "reject_sender_login_mismatch", "greylisting", "throttle", "amavisd_wblist", "sql_alias_access_policy"]

The ip class a.b.c.d/24 is also set as MYNETWORKS at /opt/iredapd/settings.py

Example: message sent from smtp with IP a.b.c.100 (which is part of the a.b.c.d/24 )

mail.log:
Mar  1 15:07:06 email amavis[15945]: (15945-13) Blocked SPAM {DiscardedInbound}, [a.b.c.100]:60107 [x.y.z.w] ESMTP/ESMTP <sender> -> <recipient>, , Queue-ID: 4PRbdf6VgFz5xYR,  Tests: [BAYES_50=0.8,DKIM_ADSP_NXDOMAIN=0.9,DKIM_INVALID
=0.1,DKIM_SIGNED=0.1,KHOP_HELO_FCRDNS=0.001,NO_DNS_FOR_FROM=0.001,RCVD_IN_PBL=3.335,SPF_HELO_NONE=0.001,SPF_NONE=0.001,URIBL_BLOCKED=0.001,URIBL_DBL_SPAM=2.5], autolearn=no autolearn_force=no, autolearnscore=7.44, 3848 ms

iredapd.log
Mar  1 15:07:02 email iredapd Found inbound wblist: [(1, 497, 'W')]
Mar  1 15:07:02 email iredapd Whitelisted: wblist=(1, 497, 'W')
Mar  1 15:07:02 email iredapd <-- Result: OK
Mar  1 15:07:02 email iredapd Session ended.


Thanks

----

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

2

Re: iRedAdmin-Pro inbound whitelist does not work

ale-freetime wrote:

Mar  1 15:07:06 email amavis[15945]: (15945-13) Blocked SPAM {DiscardedInbound}, [a.b.c.100]:60107 [x.y.z.w] ESMTP/ESMTP <sender> -> <recipient>, , Queue-ID: 4PRbdf6VgFz5xYR,  Tests: [BAYES_50=0.8,DKIM_ADSP_NXDOMAIN=0.9,DKIM_INVALID

It's blocked by Amavisd due to spam content.
Unfortunately, Amavisd doesn't support CIDR network. sad

3

Re: iRedAdmin-Pro inbound whitelist does not work

ZhangHuangbin wrote:
ale-freetime wrote:

Mar  1 15:07:06 email amavis[15945]: (15945-13) Blocked SPAM {DiscardedInbound}, [a.b.c.100]:60107 [x.y.z.w] ESMTP/ESMTP <sender> -> <recipient>, , Queue-ID: 4PRbdf6VgFz5xYR,  Tests: [BAYES_50=0.8,DKIM_ADSP_NXDOMAIN=0.9,DKIM_INVALID

It's blocked by Amavisd due to spam content.
Unfortunately, Amavisd doesn't support CIDR network. sad


I removed the IP class and whitelisted only the IP address, but nothing has changed.
Then I also put the sender’s address in format User with wildcard: user@* and it didn’t work.
If I put the exact address of the sender or format  domain and its sub-domains: @.domain.tld, it works.

It seems that iredapd amavis_wblist doesn't support ip addresses and User with wildcard. Is that correct?

Thanks

4

Re: iRedAdmin-Pro inbound whitelist does not work

ale-freetime wrote:

It seems that iredapd amavis_wblist doesn't support ip addresses and User with wildcard. Is that correct?

iRedAPD supports IP and CIDR, but AMavisd doesn't.
Could you please turn on debug mode in iRedAPD and reproduce the issue, then extract full log related to this testing email and paste here for troubleshooting?

FYI https://docs.iredmail.org/debug.iredapd.html