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

Przemysław Knycz

New Member
Oct 15, 2018
7
0
1
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:

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
2,990
321
83
try escaping the `/` in `/.icu$` as well?
(/ is the separator for the api) - iow does:
`pmgsh delete quarantine/blacklist/\*+@\*+\/.icu\$`
work?
 

Przemysław Knycz

New Member
Oct 15, 2018
7
0
1
Thanks for reply!

No :(


# pmgsh delete quarantine/blacklist/\*+@\*+\/.icu\$
no 'delete' handler for 'quarantine/blacklist/*+@*+/.icu$'
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
2,990
321
83
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

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
2,990
321
83
Glad your problem is solved! Please mark the Thread as Solved, so that others know what to expect :) - Thanks!
 
  • Like
Reactions: Przemysław Knycz

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!