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: 521
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:
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)
If recipient list contains AT LAST ONE invalid address, whole message should be rejected (even for valid recipients addresses)
If sending server uses HELO message with bogus domain name (other than domain of this server), message should be rejected
Any server attempting to send mail to dedicated address (f.e. [email protected]), should be automatically blacklisted
Any other suggested rules ...
© Server Fault or respective owner