On 8/8/2011 12:51 PM, /dev/rob0 wrote:
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.

Thanks for the help guys. Feeling kinda dumb at this point and should RTFM a bit more.

--
Stephen Atkins
Information Systems
Resorts of the Canadian Rockies INC.
http://www.skircr.com
satk...@skircr.com
Voice: (403) 209-3367
Cell: (403) 510-8333
Fax: (403) 244-3774

Reply via email to