sendmail rules for filtering spam

Posted by user71061 on Server Fault See other posts from Server Fault or by user71061
Published on 2011-03-01T19:28:35Z Indexed on 2011/03/02 7:26 UTC
Read the original article Hit count: 522

Filed under:
|
|

Hi!

Can anyone help me with constructing sendmail rules for limiting spam? Assuming that name of my domain is my.domain.com, I want to use following rules:

  1. If BOTH sender and recipient address is from my.domain.com, message should be rejected (sendmail server only relays messages between my internal exchange server and outside word, so sending messages between users from my.domain.com always occour on exchange server and never on sendmail server)

  2. If recipient list contains AT LAST ONE invalid address, whole message should be rejected (even for valid recipients addresses)

  3. If sending server uses HELO message with bogus domain name (other than domain of this server), message should be rejected

  4. Any server attempting to send mail to dedicated address (f.e. [email protected]), should be automatically blacklisted

  5. Any other suggested rules ...

© Server Fault or respective owner

Related posts about sendmail

Related posts about spam