Dave Johnson wrote: > Hi all > > Is there anyway of stopping the from "j...@foo.com" to "j...@foo.com" spam > attacks? > > Regards > > > Well. If you are delivering via procmail, you can have a procmail rule like this one (untested, and posibly larger than a experienced procmail user will do, but should work):
SHELL=/bin/bash __TO=`formail -z -x 'To:'` __FROM=`formail -z -x 'From:'` :0fw * __TO ?? __FROM | formail -I "X-From-And-To-Are-The-Same: Yes" ## This will forward the mail, with a X-header that you can chase via a spamassasin rule. I will prefer this way instead of just droping the mail, cause, as many has told you, will probably block legitimate mail. HTH Gerardo