[SOLVED] User blacklist with bad address *+@*+/.icu$

Oct 15, 2018
7
0
21
Hello.

I've tried to add all domain "*.icu" to user blacklist and i have now problem to remove this line:

Method 'DELETE /quarantine/blacklist/*+@*+/.icu$' not implemented (501)

I don't know how to delete it also from pmgsh:

root@mail-gw:~# pmgsh delete quarantine/blacklist/\*+@\*+/.icu\$
no 'delete' handler for 'quarantine/blacklist/*+@*+/.icu$'
root@mail-gw:~# pmgsh delete 'quarantine/blacklist/*+@*+/.icu$'
no 'delete' handler for 'quarantine/blacklist/*+@*+/.icu$'

I've also add "icu" to global domain blacklist, but it doesn't work, but this is for other thread. :)

# pmgversion
pmg-api/5.0-61/71d9a758 (running kernel: 4.13.13-5-pve)
 
Last edited:
try escaping the `/` in `/.icu$` as well?
(/ is the separator for the api) - iow does:
`pmgsh delete quarantine/blacklist/\*+@\*+\/.icu\$`
work?
 
hm - sorry - didn't check explicitly - the API has a different specification for quarantine/blacklist:
Code:
pmgsh get /quarantine/blacklist/ -pmail '$usermailaddress'
should get you the blacklist for user with the mail $usermailaddress
deletion works like this:
Code:
pmgsh delete /quarantine/blacklist/*@*.icu -pmail '$usermailaddress'
 
  • Like
Reactions: Przemysław Knycz
Glad your problem is solved! Please mark the Thread as Solved, so that others know what to expect :) - Thanks!
 
  • Like
Reactions: Przemysław Knycz
Hi. I've used Regexp on block:
.+\.icu$

https://prnt.sc/mez9y7
mez9y7


Works perfectly :)