I'd like to discard emails that have a envelope-from that does not match the from email. It's pretty common for us to receive emails like this that pass SPF and appear to come from internal email addresses. Is there a mail filter rule that I can set up for this, or does it have to be something in a spamassassin rule? Here's an example from this morning:
...
Received-SPF: pass (geesysindia.com: 198.1.95.225 is authorized to use 'sales.apts@geesysindia.com' in 'mfrom' identity (mechanism 'a' matched)) receiver=pmg.domain.com; identity=mailfrom; envelope-from="sales.apts@geesysindia.com"; helo=198-1-95-225.webhostbox.net; client-ip=198.1.95.225
...
Received: from [148.255.135.103] (port=62794 helo=[192.3.16.44])
by 198-1-95-225.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.91)
(envelope-from <sales.apts@geesysindia.com>)
id 1gxIPv-00014C-A8
for purchasing@domain.com; Sat, 23 Feb 2019 03:01:35 +0530
Date: Fri, 22 Feb 2019 17:31:44 -0400
From: a@pmg.domain.com,
b@pmg.domain.com, c@pmg.domain.com,
d <sales.apts@geesysindia.com>
To: purchasing@domain.com
...
...
Received-SPF: pass (geesysindia.com: 198.1.95.225 is authorized to use 'sales.apts@geesysindia.com' in 'mfrom' identity (mechanism 'a' matched)) receiver=pmg.domain.com; identity=mailfrom; envelope-from="sales.apts@geesysindia.com"; helo=198-1-95-225.webhostbox.net; client-ip=198.1.95.225
...
Received: from [148.255.135.103] (port=62794 helo=[192.3.16.44])
by 198-1-95-225.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.91)
(envelope-from <sales.apts@geesysindia.com>)
id 1gxIPv-00014C-A8
for purchasing@domain.com; Sat, 23 Feb 2019 03:01:35 +0530
Date: Fri, 22 Feb 2019 17:31:44 -0400
From: a@pmg.domain.com,
b@pmg.domain.com, c@pmg.domain.com,
d <sales.apts@geesysindia.com>
To: purchasing@domain.com
...