I have been searching and trying different solutions, but I can't seem to find the magic incantation that makes this work.
I have a user getting blasted with various loosely related emails all from various email addresses and domains. However, they all are being used by the same email relay service. For example:
ALL unwated emails are being relayed through servers with names like "smtp.xxxx.mailrealy.com" where xxxx is a different server name almost every time. I have checked and none of my other users are receiving valid emails from that email relay service.
How do I block those? I have tried using mail filter rules with a What Object of "Match Field" of "Recieved=^.*\.mailrelay.com.*$" When using one of the Received headers from an email in the test string box, it says "OK". Then I used that object in the mail filter rule to quarantine the message, but it doesn't do it.
I've also tried using /etc/postfix/senderaccess, but I've been editing that by hand and sometime overnight any edits I make go away.
The user is not happy that I've not been able to solve this problem. Any help would be appreciated.
I have a user getting blasted with various loosely related emails all from various email addresses and domains. However, they all are being used by the same email relay service. For example:
Code:
Received: from smtp.sandia.mailrealy.com (smtp.sandia.mailrelay.com [254.223.231.24])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by pmg.mydomain.com (Proxmox) with ESMTPS
for <user@mydomain.com>; Wed, 28 Sep 2022 14:10:40 -0500 (CDT)
ALL unwated emails are being relayed through servers with names like "smtp.xxxx.mailrealy.com" where xxxx is a different server name almost every time. I have checked and none of my other users are receiving valid emails from that email relay service.
How do I block those? I have tried using mail filter rules with a What Object of "Match Field" of "Recieved=^.*\.mailrelay.com.*$" When using one of the Received headers from an email in the test string box, it says "OK". Then I used that object in the mail filter rule to quarantine the message, but it doesn't do it.
I've also tried using /etc/postfix/senderaccess, but I've been editing that by hand and sometime overnight any edits I make go away.
The user is not happy that I've not been able to solve this problem. Any help would be appreciated.