Re: header checks for a relay client

2014-09-23 Thread Noel Jones
On 9/23/2014 2:31 PM, Michael Fox wrote: > Sanity check please: > > > > I have a relay machine: relay.domain1.com > > And a client: client.domain2.com > > > > I’d like to filter (silently discard) messages at the relay machine > from going to any account on the client machine if the From

RE: header checks for a relay client

2014-09-23 Thread Michael Fox
> What you can do is create a restriction class to check the sender > and the recipient, and reject the message if both match. The > general procedure is outlined here, with some examples similar to > what you're asking: > http://www.postfix.org/RESTRICTION_CLASS_README.html > > Alternately, you

RE: header checks for a relay client

2014-09-24 Thread Michael Fox
> > What you can do is create a restriction class to check the sender > > and the recipient, and reject the message if both match. The > > general procedure is outlined here, with some examples similar to > > what you're asking: > > http://www.postfix.org/RESTRICTION_CLASS_README.html I don't see

RE: header checks for a relay client

2014-09-24 Thread Michael Fox
> -Original Message- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of Michael Fox > Sent: Wednesday, September 24, 2014 10:24 AM > To: 'postfix users' > Subject: RE: header checks for a relay client > &g

Re: header checks for a relay client

2014-09-24 Thread Noel Jones
On 9/24/2014 12:49 PM, Michael Fox wrote: >> -Original Message- >> From: owner-postfix-us...@postfix.org [mailto:owner-postfix- >> us...@postfix.org] On Behalf Of Michael Fox >> Sent: Wednesday, September 24, 2014 10:24 AM >> To: 'postfix users' &

RE: header checks for a relay client

2014-09-24 Thread Michael Fox
Thanks much. > That looks about right. > > Good Practice Note: anchor/narrow your expressions to make them as > specific as possible to prevent unexpected behavior. This is > especially important if you intend to discard mail: > /@client[1-6]\.domain2\.com$/ > /@yahoogroups\.com$/ > > > -- No