On Fri, Feb 05, 1999 at 08:21:58AM +0700, Moh. Deny Kurniawan wrote:
> Help...
> 
> I have a problem with tcprules
> 
> I deny every host to use smtp.x.x.x, except 209.134.x.x 
> 
> and it works fine 
> 
> but when i tried to send an e-mail from somewhere (i.e mail.yahoo.com) to
> smtp.x.x.x machine, that e-mail has been denied too.
> 
> What I want is:
> 
> deny every host to use smtp server on smtp.x.x.x except 209.134.x.x but
> allow every host to send e-mails to smtp.x.x.x machine.

You don't want to deny them use of your SMTP server; you just want to disallow
them from using you for a relay (i.e. from sending mail to a non-local
address). In your rules file you want the following single line:

209.134.:allow,RELAYCLIENT=""

And in the file control/rcpthosts you want to list all the domains for which
you want to accept mail. The above line will set RELAYCLIENT for any host
209.134.x.x, which will allow that host to relay. Any other host will be
allowed to connect, but will be restricted to sending mail to a domain you've
listed in control/rcpthosts.

Chris

Reply via email to