Postfix block senders outside from local domains
- by Tibor Peter Toth
I would like to block every mail that is coming in from a domain that is running on my server.
Example: I have domain1.com on my mail server and I'm getting a mail from outside with an email address of [email protected] Then I know it's a Spam, because domain1.com is on my server, so the sender cannot come from outside.
I want postfix to check for this, and simply block these kind of emails.
I know this is a function in postfix, just don't know which one.
Thanks.