On Sat, Nov 20, 1999 at 10:19:18PM +0100, Andres Mendez wrote:
> Hello.
>
> I've installed the relaymailfrom patch.
>
> I want to deny any relay except for the domains listed in
> control/relaymailfrom.
>
> I'm using the tcpserver. How do I do this?
This question should really have gone to me, not to the list. It's not likely
that many people use this patch.
> I have read this :
> ----------------
> To give a client relay access, add an entry to /etc/tcp.smtp like:
>
> IP address of client:allow,RELAYCLIENT=""
>
> Then rebuild the SMTP access database by doing:
>
> tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
> chmod 644 /etc/tcp.smtp*
> ----------------
>
> But I want to stop all relaying except for the ones listed in relaymailfrom.
What does this mean?
> Can I do what I want using this?
> --------------------
> *:allow,RELAYBYADDRESS=""
> :deny
> ---------------------
No. You never want a deny line in there, because then nobody could connect to
your SMTP port from the outside world to deliver you mail. And * has no meaning
as a wildcard to tcprules. Even if you fixed these two things, it still
wouldn't do what you want it to do (and I have no idea what you do want it to
do).
The relaymailfrom patch is pretty simple, and I don't know how the short bit of
documentation that comes in the patch file could be any clearer.
Could you be clearer about what you're trying to accomplish? Chances are that
you don't need this patch anyway.
Chris