Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: nald on December 15, 2004, 02:48:08 PM
-
I have a mail server running SME 6.0.1. I would like to ask on how to configure relay domains using qmail?
I tried to open the file /etc/tcprules/tcp.smtp and there are ip address which are open.
How am i going to close some of those ip addresses?
Thanks...
Nald
-
Hi nald,
The file that needs to be edited would be /var/qmail/control/rcpthosts. Add the domains that you want to relay in that file. You should probably create a custom template for it though, otherwise it will be written over on any changes to the system.
Hope that helps,
Jon
-
Jon,
I tried to view the file inside /var/qmail/control/rcpthosts and i found nothing inside but only my hostname and domain name.
All i need is to deny a certain public ip address in doing smtp connection.
Thanks...
Nald
-
ok, in your /etc/tcprules/tcp.smtp file use 'deny' instead of 'allow' for the IP address.
e.g. 24.236.94.120:deny
That should stop that IP from making a connection to your smtp daemon.
Hope that helps,
Jon