Postfix block senders outside from local domains

Posted by Tibor Peter Toth on Server Fault See other posts from Server Fault or by Tibor Peter Toth
Published on 2012-11-30T10:32:40Z Indexed on 2012/11/30 11:07 UTC
Read the original article Hit count: 288

Filed under:
|
|
|
|

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.

© Server Fault or respective owner

Related posts about email

Related posts about postfix