iredmail / iRedAPD

A simple Postfix policy server.
https://www.iredmail.org/
47 stars 24 forks source link

Can't list blacklist with wblist in 4.4 + 1 commit #4

Closed olivier-lz closed 4 years ago

olivier-lz commented 4 years ago

Hi,

I juste want to upgrade iRedApd-4.4 to use wblist.py, but when I download the last package from https://github.com/iredmail/iRedAPD/releases/4.4.tar.gz or the ZIP file ; none of them include the change in the commit https://github.com/iredmail/iRedAPD/compare/4.4...master.

To be sure I apply manually the commit, and now I can add into blacklist /usr/bin/python /opt/iRedAPD-4.4/tools/wblist_admin.py --add --blacklist @example.com.

In the lastes devloppement (4.4 + 1 commit) I continue to see some .decode(), and for example, I can't list BL :

# /usr/bin/python /opt/iRedAPD-4.4/tools/wblist_admin.py --list --blacklist
* Establishing SQL connection.
* List all inbound blacklist for account: @.
AttributeError("'buffer' object has no attribute 'decode'",)

I'm available for testing if you need.

-- Thanks for all your work.

iredmail commented 4 years ago

I don't have such issue with MariaDB. Are you running PGSQL? I will test it immediately.

iredmail commented 4 years ago

Btw, could you please run the command with python3 instead of python? It seems your python command is Python 2.

iredmail commented 4 years ago

Fixed one more issue, you can try the latest development edition and run with Python 3 (not python or python2, but python3).

olivier-lz commented 4 years ago

Hi.

Thanks for your consideration, and quick response.

  1. Yes I use PGSQL.

  2. /usr/bin/python is actually python2, not python3, like you recommand, but another error occurs.

    
    root@odin:~# /usr/bin/python /opt/iRedAPD-4.4/tools/wblist_admin.py --list --blacklist
    * Establishing SQL connection.
    * List all inbound blacklist for account: @.
    AttributeError("'buffer' object has no attribute 'decode'",)

root@odin:~# /usr/bin/python2 /opt/iRedAPD-4.4/tools/wblist_admin.py --list --blacklist

root@odin:~# /usr/bin/python3 /opt/iRedAPD-4.4/tools/wblist_admin.py --list --blacklist

root@odin:~# ls -l /usr/bin/python lrwxrwxrwx 1 root root 7 Mar 4 2019 /usr/bin/python -> python2



3. I will try this morning (Europe/Paris), the latest development edition.
olivier-lz commented 4 years ago

I just change the title and description, because it's mistake, the 4.4 package is ok, I just do not correctly understand how Github release works...

iredmail commented 4 years ago

I believe the latest development edition fixed this issue. :)

olivier-lz commented 4 years ago

Everythings works fine, with python3 and the lastest dev. :smiley: Thank you.

iredmail commented 4 years ago

Thanks for the feedback. :)