I have Postfix configured to block email from a persistent spammer that has found a "bulletproof" spam service provider (known as Amazon SES), but of course the block fails because the MAIL FROM (aka "Return-Path") is a string such as 01000165f9022c82-37fa3cc3-d63c-4548-be3d-125d50e43aaf-000000@amazonses.com
while the From
header passed in the DATA command is ThePartyFixxCompany@gmail.com
.
Is there a way to block the address/domain in the From
header during the SMTP transaction, rather than filtering it to /dev/null
with some after-the-fact process like Sieve, Amavis, Spamassassin, etc.?
This answer suggests it's not possible, but then goes on to emphasise a different point that is not relevant to my question, so it's not clear to me that it is absolutely not possible.
I don't think my postconf
output is relevant to this question, as Postfix is running as it should be (I'm running 2.10.1.). I'm looking for a configuration tweak. Thanks.