On Mon, Aug 08, 2011 at 12:29:38PM -0600, Stephen Atkins wrote: > Hello everyone. I've been searching around trying to figure this > out but it just eluding me. We've been getting a ton of mail from > a certain domain which is all spam. Problem is that our mail > system is also generating a bounce for each try.
Then your system is misconfigured. You should never accept mail that you cannot deliver. First solve this problem, and then the other one will be minor. http://www.postfix.org/DEBUG_README.html#mail http://www.postfix.org/ADDRESS_CLASS_README.html > I would like to block absolutely everything to or from this > domain no matter what. I found a couple of examples but they > don't seem to want to work for me. That's a different, relatively trivial matter. First, explain what "mail from a certain domain" means. Do you mean the easily and commonly forged sender address? If so, you want a check_sender_access lookup: example.com reject This is fine if you are absolutely certain that no legitimate mail would ever have a sen...@example.com address. If OTOH you are talking about the client or HELO hostname, there would be different lookup types needed. And as to why the examples are not working, not much we can do about that until you read: http://www.postfix.org/DEBUG_README.html#mail > I can post my conf and hash files if needed. I don't suppose anything more than a wild guess is possible until you do. http://www.postfix.org/DEBUG_README.html#mail -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header