We are getting a ton of junk being sent to subdomain addresses. We don't accept any email on any subdomains, and I'm trying to figure out how to block them.
So far I've got the idea to block it using Header checks (which we are already using to block file extensions). I don't know if this is the best option, and even if it is a good option I don't know if I have the regex I've built for it correct (so I've left it out so I don't screw anything up).
Here's what I've got for it:
/^To:.*@.*\.domain\.com/ DISCARD
Would that work for my purposes?
So far I've got the idea to block it using Header checks (which we are already using to block file extensions). I don't know if this is the best option, and even if it is a good option I don't know if I have the regex I've built for it correct (so I've left it out so I don't screw anything up).
Here's what I've got for it:
/^To:.*@.*\.domain\.com/ DISCARD
Would that work for my purposes?