Blacklist and whitelist

alexandrek

New Member
Jun 6, 2025
6
0
1
Good morning everyone, I'm new to using Proxmox Mail Gateway, and I'm facing some problems with the whitelist and blacklist.
I don't know if it's a configuration that's not done, or if it's a parameter that I need to adjust.
But some domains that are on the whitelist, I don't get blocked or sent to spam.
And some domains that I have on the blacklist don't get blocked, they arrive as quarantine.
In fact, I get quarantined emails that don't exist.
If you can give me a way to solve this.
Thank you
 
Good morning, sorry for the delay in responding.

Below is the log of one of the emails that is on the blacklist, but is in quarantine.

Thank you

2025-06-06T06:49:57.114616-03:00 antispam postfix/smtpd[135872]: connect from 112.54.140.34.bc.googleusercontent.com[34.140.54.112]
2025-06-06T06:49:58.438003-03:00 antispam postfix/smtpd[135872]: NOQUEUE: client=112.54.140.34.bc.googleusercontent.com[34.140.54.112]
2025-06-06T06:49:58.689788-03:00 antispam pmg-smtp-filter[135914]: 3414A6842B9C6A7BA5: new mail message-id=<626626764.4084.1749203389648@nynqi.sud-impression.com>#012
2025-06-06T06:49:58.795458-03:00 antispam pmg-smtp-filter[135914]: 3414A6842B9C6A7BA5: SA score=3/5 time=0.079 bayes=undefined autolearn=disabled hits=HTML_FONT_LOW_CONTRAST(0.713),HTML_MESSAGE(0.001),MIME_HTML_ONLY(0.1),PDS_RDNS_DYNAMIC_FP(0.001),RDNS_DYNAMIC(2.639)
2025-06-06T06:49:58.802791-03:00 antispam pmg-smtp-filter[135914]: 3414A6842B9C6A7BA5: moved mail for <*************> to spam quarantine - 33F676842B9C6C2F00 (rule: Quarantine/Mark Spam (Level 3))
2025-06-06T06:49:58.806056-03:00 antispam pmg-smtp-filter[135914]: 3414A6842B9C6A7BA5: processing time: 0.115 seconds (0.079, 0.022, 0)
2025-06-06T06:49:58.806298-03:00 antispam postfix/smtpd[135872]: proxy-accept: END-OF-MESSAGE: 250 2.5.0 OK (3414A6842B9C6A7BA5); from=<nair.morais@nynqi.sud-impression.com> to=<**************> proto=ESMTP helo=<nynqi.sud-impression.com>
2025-06-06T06:49:58.806765-03:00 antispam postfix/smtpd[135872]: disconnect from 112.54.140.34.bc.googleusercontent.com[34.140.54.112] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
 
Hi,

Can you provide your filter ?

From the log nothing seems to match a rule.

Best regards,
 
Hello,
Could you be a little more specific, as I'm new to this and don't know much about it.
But this domain is listed as a regular expression on the blacklist, as shown below.

.*sud-impression.com
 
Hi,

go to "Mail Filter" and show you filter for blacklist.

And you expression should be "*.sud-impression.com", not ".*sud-impression.com"

Best regards,
 
If I put it the way you told me with the * before the . it gives me the error below when saving.



invalid regex: ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE .sud-impression.com$/ at /usr/share/perl5/PMG/Utils.pm line 1590. (500)
 
Hi,

again : go to "Mail Filter" and show you filter for blacklist.

Best regards,
 
Good afternoon, how are you???
Sorry for the delay in getting back to you, I didn't quite understand, which option do I go to Mail Filter and open???
Or would it be this screen below???

1749671765919.png