Re: disallowing certain remote recipients

2001-07-20 Thread Adrian Ho

On Sat, Jul 21, 2001 at 02:08:50AM +0800, Adrian Ho wrote:
> where ~alias/.qmail-trashcan contains:

Sorry, I meant ~alias/.qmail-trashcan-default, of course.  8-)

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
Archived @:  
Useful URLs:  
  



Re: disallowing certain remote recipients

2001-07-20 Thread Adrian Ho

On Fri, Jul 20, 2001 at 11:38:31AM -0500, Joshua Nichols wrote:
> I'd like to be able to "block" certain outbound addresses at the
> qmail-send or qmail-remote level.

virtualdomains should do it for you.  Something like:

unwanted.dom.ain:trashcan

where ~alias/.qmail-trashcan contains:

#

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
Archived @:  
Useful URLs:  
  



Re: disallowing certain remote recipients

2001-07-20 Thread Dave Sill

"Joshua Nichols" <[EMAIL PROTECTED]> wrote:

>I have a box (lwq + qmail-verh basically) that runs a number of opt in
>lists.  Recently, a user sent a bunch of UCE, and though that problem has
>been solved, I'd like to be able to enforce the request of those who
>complained and asked "to never receive another email from us".
>
>Because I anticipate other users breaking their TOS at some point in the
>future, I'd like to be able to "block" certain outbound addresses at the
>qmail-send or qmail-remote level.  Ideally, I would have a control file that
>listed addresses and wildcards that this box would refuse to send mail to.
>That is, if [EMAIL PROTECTED] requests that our service not allow
>sending to his domain, I could put that restriction on the box, regardless
>of whether [EMAIL PROTECTED] subscribes to one of these lists, or is
>added against her will or whatnot.

Use control/virtualdomains. Say aol.com and [EMAIL PROTECTED] ask you to
not send them mail. Add the following to virtualdomains:

  aol.com:alias-devnull
  [EMAIL PROTECTED]:alias-devnull

Then create ~alias/.qmail-devnull-default containing:

  #

If you want to throw the mail away, or:

  |echo "mail to this address is blocked locally by request"; exit 100

If you want to generate a bounce message.

-Dave



RE: disallowing certain remote recipients

2001-07-20 Thread Joshua Nichols


> Try the "badrcptto" patch or the "spamcontrol" patch, either of which
> will check against the envelope recipient and refuse to accept the
> message. Alternately, nullroute all of the MX's for the domain in
> question.

Once again, these messages are not being received via qmail-smtpd.  They are
injected locally, so as far as I can tell, those patches will not help me.

That's why I'm thinking qmail-send level.


--joshua.




Re: disallowing certain remote recipients

2001-07-20 Thread John Groseclose

At 11:38 AM -0500 7/20/01, Joshua Nichols wrote:
>Hey all--
>
>I've searched the archives and not found a solution that seems to solve the
>following problem:
>
>I have a box (lwq + qmail-verh basically) that runs a number of opt in
>lists.  Recently, a user sent a bunch of UCE, and though that problem has
>been solved, I'd like to be able to enforce the request of those who
>complained and asked "to never receive another email from us".
>
>Because I anticipate other users breaking their TOS at some point in the
>future, I'd like to be able to "block" certain outbound addresses at the
>qmail-send or qmail-remote level.  Ideally, I would have a control file that
>listed addresses and wildcards that this box would refuse to send mail to.
>That is, if [EMAIL PROTECTED] requests that our service not allow
>sending to his domain, I could put that restriction on the box, regardless
>of whether [EMAIL PROTECTED] subscribes to one of these lists, or is
>added against her will or whatnot.

Try the "badrcptto" patch or the "spamcontrol" patch, either of which 
will check against the envelope recipient and refuse to accept the 
message. Alternately, nullroute all of the MX's for the domain in 
question.
-- 
John Groseclose
[EMAIL PROTECTED]