OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: jassonmc on January 06, 2025, 12:58:53 PM

Title: Wildcard blocking of spam MTAs?
Post by: jassonmc on January 06, 2025, 12:58:53 PM
I have an opnsense firewall (business edition) which utilizes plugins for postfix and rspamd. We sometimes receive spam mails, originating from different mail servers (sending SMTP), which are however from the same second level domain.

Example:
Spam sending SMTP server 1 has fqdn and also PTR entry: xyz.spamfreak.com
Spam sending SMTP server 2 has fqdn and also PTR entry: abc.asd.spamfreak.com

Is there a way to use a wildcard approach to block all and any communication with hosts having a PTR entry in DNS, that matches spamfreak.com at the end?
So it should block *.spamfreak.com but also *.*.spamfreak.com.