Thanks for your reply Mr Johnson,
Actually what I want is:
# first step:
deny every host to use smtp server on smtp.x.x.x, except 209.134.x.x
so every computer with IP 209.134.x.x can send e-mail to everywhere.
# second step:
smtp.x.x.x allow to receive e-mail from everywhere.
# but
when I did the "first step" , unfortunately smtp.x.x.x can not receive
e-mail from all host, except 209.134.x.x
I think imposibble to list thousand host to control/rcpthost because I
want to allow smtp.x.x.x machine to receive e-mail from everywhere.
On Thu, 4 Feb 1999, Chris Johnson wrote:
> 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
>