Proxmox Mail Gateway - User Blocklist

liszca

Well-Known Member
May 8, 2020
84
1
48
24
I am uncertain how to use the Blocklist. I tried to block mails but I feel like I am doing it wrong:
1764947095066.png

What is the pulldown menu for and whats the relation to the other position (below) where I can also put e-Mail addresses?
 
Last edited:
In dropdown list first write your user mail address. Then add blocking (or welcome) sender address via add button.
 
In dropdown list first write your user mail address. Then add blocking (or welcome) sender address via add button.
this would mean for this user mail the another email will be blocked or allowed?

can this be done for domains also?
 
@liszca via SSH:

Code:
# Switch to the postgres system user
root@PMG8-CT:~$ sudo -i -u postgres

# Connect to the PostgreSQL database "Proxmox_ruledb"
postgres@PMG8-CT:~$ psql -d Proxmox_ruledb

# Check existing entries for the wildcard email *@wrongmail.tld
Proxmox_ruledb=# SELECT *
                 FROM userprefs
                 WHERE pmail = '*@wrongmail.tld';

-- Expected result:
--  pmail             | name | data |   mtime
-- -------------------+------+------+
--  *@wrongmail.tld   | WL   |      | 1738588725
--  *@wrongmail.tld   | BL   |      | 1738588725
-- (2 rows)

# Delete all matching entries for *@wrongmail.tld
Proxmox_ruledb=# DELETE
                 FROM userprefs
                 WHERE pmail = '*@wrongmail.tld';

-- Output:
-- DELETE 2

# Exit psql
Proxmox_ruledb=# \quit

# Return to the original shell user
postgres@PMG8-CT:~$ exit

# Logout from the system
# logout
 
Last edited: