Mail Proxy - White list problem

Goldy

New Member
Aug 4, 2024
24
2
3
Hi everybody.
If I understand correctly, all entries in the 'Mail Proxy - Whitelist' should bypass spam checks. However, I’ve noticed that some domains or email addresses I’ve added there are still being flagged as spam. Any ideas on how to resolve this?
 
You are describing the SMTP whitelist. Here, certain checks are only deactivated in the SMTP dialog, i.e. when the mail is received. For example, greylisting, SPF check & DSNBL checks for the sender or the domain you have specified.

If you want to ensure that senders or domains are provided without a flag, you must also create a rule under Mail Filter and set the sender/domain to Accept. These rules only take effect after the mail has been accepted and processed by Spamassassin.
 
Hi.
Thanks.
Although both the email address and domain are whitelisted under Mail filter-Who Object-Whitelist, they are still being marked as spam and sent to quarantine.
 
Thanks!!:)
Not sure where to find log of a whitelisted email.:confused:
See if the attached file help.
 

Attachments

You can find the log in the same place, we only need the log from a sender on the whitelist, which is nevertheless blocked.

It is clear from the log that your query is being blocked by Spamhaus:

URIBL_DBL_BLOCKED_OPENDNS 0.001 ADMINISTRATOR NOTICE: The query to dbl.spamhaus.org was blocked due to usage of an open resolver. See https://www.spamhaus.org/returnc/pub/ [Commax.com,u2274819.ct.sendgrid.net]

This is because your PMG uses a DNS server that is blocked by Spamhaus. Many RBLs block public DNS resolvers. It could also be that PMG flagged the mail as spam because it could not reach the RBL.
 
Hi,

I've noticed this issue and am unsure how to fix it, especially since the PMG DNS settings are 9.9.9.9 and 8.8.8.8.

Nevertheless, if I understand the PMG mechanism correctly, all entries in the 'Mail Proxy -> Whitelist' should bypass any and all spam checks.
 
Hi,

I've noticed this issue and am unsure how to fix it, especially since the PMG DNS settings are 9.9.9.9 and 8.8.8.8.
It is best to send DNS requests from your PMG via DNS servers that are not blocked by Spamhaus. However, Google's public servers are among them. This means that you should be able to send round robin requests via the two DNS servers you have specified and sometimes not; QUAD9 is not blocked.

You can either enter alternative DNS servers in the PMG, namely those of your provider, or pass the DNS traffic of the PMG to certain DNS servers via the firewall.

You can test it via CLI:

Code:
host 2.0.0.127.zen.spamhaus.org
If you get NXDOMAIN or a timeout, your DNS resolver cannot access Spamhaus.


Nevertheless, if I understand the PMG mechanism correctly, all entries in the 'Mail Proxy -> Whitelist' should bypass any and all spam checks.
As far as I know, Postfix always flags mails as spam if RBL lists are entered but not accessible.
 
OK, it looks like you got it.
Running host 2.0.0.127.zen.spamhaus.org returned NXDOMAIN.
I removed all DNS servers from the list and kept only 9.9.9.9—and voila!
1738260705192.png
Strangely, 8.8.8.8 and 1.1.1.1 didn’t work.:confused:
I’ll wait until tomorrow to see the results.
:)
Thanks!
 
  • Like
Reactions: Hunduster
Hey there,

Currently, there are no DNS servers blocked by Spamhaus. However, oddly enough, the sender is still being blocked by PMG, despite all my attempts to exempt them.
 

Attachments

Hi.

I have put the domain "Sender.com" in both "Mail Proxy" -> "White List, and in "Mail Filter" -> "Who Objects" -> Whitlist.
 
Then I don't know what to do.

I asked because you are working with e-mail addresses in the screenshots above. The address given here in the log as the sender did not appear in your screenshots. I myself currently only work with domains and not individual e-mail addresses.
 
Thank you so much for all your efforts.
Normally, with other gateway I had, adding a domain to the whitelist exempts it from all spam checks, ensuring that all emails from that sender/domain are accepted.
For some reason, it doesn't seem to work with PMG. If I find a resolution for this, I'll update you here.
 
OK.
We found a resolution for this issue.
Go to Mail Filter - Rules - Whitelist and increase the priority to 98.
it seems to work for us.
By default, the Blacklist rule and spam filtering rules have higher priority than the whitelist rule, meaning a whitelisted sender can still be checked for spam. Increasing the priority ensures that whitelisted emails are accepted before spam checks are applied.