I have Postfix configured with a few domains, delivering to Dovecot locally.
I’ve noticed some interesting spam that comes in, purporting to be from an address at one of those domains, but that address does not exist.
How can I configure Postfix to drop those emails? Real email from this domain a. originates from the same server it is being delivered to, and b. is DKIM signed.
You can prevent people using your own domains in MAIL FROM commands by putting them in a check_sender_access map after you accept mail from mynetworks and submission (SASL):
And in
/etc/postfix/my_domains
:As you see, you can provide custom errors too.