Reject recipient in postfix mail relay

Posted by galets on Server Fault See other posts from Server Fault or by galets
Published on 2009-12-21T00:37:54Z Indexed on 2010/03/29 2:03 UTC
Read the original article Hit count: 384

Filed under:

I have about 3 knows email addresses in my domain, which don't exist and to which a lot of spam is sent. Some of this spam is pretty heavy, and I'm wasting a lot of traffic on it, so I don't want to even receive emails if their destination is one of those 3 addresses. Since I know that the users don't exist I would like postfix to reject emails during RCPT TO: negotiation. Basically, all I want is to update some config with those 3 addresses, and every email sent to them must fail to come in.

I want to stress out following:

  • postfix works as a relay for domain, there is no local users
  • postfix has no knowledge about validity of other emails within domain, so it cannot simply reject unknown recipients

© Server Fault or respective owner

Related posts about postfix