On Mon, Aug 08, 2011 at 01:46:08PM -0500, /dev/rob0 wrote: > On Mon, Aug 08, 2011 at 12:29:38PM -0600, Stephen Atkins wrote: > > 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
That answered the "from a certain domain" part but neglected the case of "to a certain domain". That would be a check_recipient_access lookup, if the recipient address is what is meant. I also forgot the link to SMTPD_ACCESS_README, but Jeroen gave that. -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header