BBS水木清华站∶精华区

发信人: lenx (冷·枫), 信区: Linux 
标  题: prevent sendmail abuse 
发信站: BBS 水木清华站 (Tue Jun 17 21:42:21 1997) 
 
From: andrew@adaviel.isdn.ubc.ca (Andrew Daviel) 
Subject: Re: prevent sendmail abuse ? 
Date: 5 Apr 1997 08:33:19 GMT 
Organization: TRIUMF 
 
Russell Nelson (nelson@crynwr.com) wrote: 
 andrew@andrew.triumf.ca (Andrew Daviel) writes: 
 
 > How can I stop the following kind of abuse in sendmail? 
 
 Switch to qmail.  http://www.qmail.org. 
 
Also found patch in www.sendmail.org, needs sendmail 8.8.5 
 
Scheck_rcpt 
R< $+ @ $+ @ $=w >      $#error $: "550 @ Relaying denied for " $2 
 
R< $+ % $+ @ $=w >      $#error $: "550 % Relaying denied for " $2 
 
# anything terminating locally is ok 
R< $+ @ $=w>    $@ OK 
 
# anything originating locally is ok 
R$*     $: $(dequote "" $&{client_name} $) 
R$=w    $@ OK 
R$@     $@ OK 
 
# anything else is bogus 
R$*     $#error $: "550 Relaying Denied" 
 
(LHS <tab> RHS ...) 
 
Andrew 
 
-- 
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 162.105.159.90] 

BBS水木清华站∶精华区