What I'm trying to obtain is this. We often receive spam emails FROM address/domains (even with fake address but correct domain) that are hosted on our server.
In the headers the Return-path is correct, the Envelope-to is correct and so on. The only thinkg that doesn't match of course is the IP of the server which sent the email since it didn't originate from our server. I mean none of our emails has been scammed, is just someone using a different server to send US spam with our emails.
Is there a way to block this? I mean something to mark as spam (or delete straight away) all INCOMING email from domains on the mail server but sent from a different IP? Or more generic all incoming email from a list of domains but whose IP is not included in a list of IPs? (this last option would give more flexibility when for example you have multiple servers with different domains but wich send mails each other like for example in a single organization with multiple domains and multiple servers for each domain)
Thanks in advance for your suggestions.
In the headers the Return-path is correct, the Envelope-to is correct and so on. The only thinkg that doesn't match of course is the IP of the server which sent the email since it didn't originate from our server. I mean none of our emails has been scammed, is just someone using a different server to send US spam with our emails.
Is there a way to block this? I mean something to mark as spam (or delete straight away) all INCOMING email from domains on the mail server but sent from a different IP? Or more generic all incoming email from a list of domains but whose IP is not included in a list of IPs? (this last option would give more flexibility when for example you have multiple servers with different domains but wich send mails each other like for example in a single organization with multiple domains and multiple servers for each domain)
Thanks in advance for your suggestions.