1 (edited by maciej.bukowy 2017-07-07 15:59:29)

Topic: wildcards@* in blacklist stopped working in 2.7.0

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

Hi,

after updating iRedMail 0.9.6 to 0.9.7 and iRedAdmin-Pro from 2.6.0 to 2.7.0 we are not able to add user wildcards to blacklist like it was before in System/Anti Spam/Whitelist & Blacklist: user@* it's just not adding to list. Also all of this kind of users just dissapeared. How to fix it?


Thank You

----

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

2

Re: wildcards@* in blacklist stopped working in 2.7.0

Did you try to add global or per-domain or per-user white/blacklists?

3 (edited by maciej.bukowy 2017-07-07 16:35:41)

Re: wildcards@* in blacklist stopped working in 2.7.0

ZhangHuangbin wrote:

Did you try to add global or per-domain or per-user white/blacklists?


we are using only global setting, can you help us, we are getting a lot of spam now from emails that were added as a wildcard

4 (edited by maciej.bukowy 2017-07-11 21:42:16)

Re: wildcards@* in blacklist stopped working in 2.7.0

can't add for example:
newsletter@*
noreply@*
no-reply@*
bounce@*


we had them before update. now our mailboxes are flooding full of that kind of mails..

on yours demo server it's also not working

5

Re: wildcards@* in blacklist stopped working in 2.7.0

after saving changes

Post's attachments

2017-07-11 15_43_45-Clipboard.png
2017-07-11 15_43_45-Clipboard.png 82.03 kb, file has never been downloaded. 

2017-07-11 15_44_51-Clipboard.png
2017-07-11 15_44_51-Clipboard.png 82.89 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: wildcards@* in blacklist stopped working in 2.7.0

Working on it. Will keep you updated.

7

Re: wildcards@* in blacklist stopped working in 2.7.0

Patch to fix this bug:

diff -r 055032764abf libs/iredutils.py
--- a/libs/iredutils.py    Wed Jul 12 13:19:46 2017 +0800
+++ b/libs/iredutils.py    Wed Jul 12 14:57:48 2017 +0800
@@ -597,6 +597,8 @@
     elif is_cidr_network(addr):
         # an valid ip address or cidr network
         return 'cidr_network'
+    elif is_wildcard_addr(addr):
+        return 'wildcard_addr'
 
     return False

If you're not familiar with patch, contact us to get a patched version then follow the tutorial to upgrade:
http://www.iredmail.org/docs/migrate.or … admin.html

8

Re: wildcards@* in blacklist stopped working in 2.7.0

ZhangHuangbin wrote:

Patch to fix this bug:

diff -r 055032764abf libs/iredutils.py
--- a/libs/iredutils.py    Wed Jul 12 13:19:46 2017 +0800
+++ b/libs/iredutils.py    Wed Jul 12 14:57:48 2017 +0800
@@ -597,6 +597,8 @@
     elif is_cidr_network(addr):
         # an valid ip address or cidr network
         return 'cidr_network'
+    elif is_wildcard_addr(addr):
+        return 'wildcard_addr'
 
     return False

If you're not familiar with patch, contact us to get a patched version then follow the tutorial to upgrade:
http://www.iredmail.org/docs/migrate.or … admin.html


i've just edited iredutils.py file and added 2 lines. do i need to restart something? nginx?

Post's attachments

2017-07-12 10_16_34-Clipboard.png
2017-07-12 10_16_34-Clipboard.png 23.28 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

9

Re: wildcards@* in blacklist stopped working in 2.7.0

If you're running Nginx, please restart 'uwsgi' service.

10

Re: wildcards@* in blacklist stopped working in 2.7.0

ZhangHuangbin wrote:

If you're running Nginx, please restart 'uwsgi' service.


FIXED! thank You for help smile