Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: nald on December 15, 2004, 02:48:08 PM

Title: how to configure qmail relaying
Post 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
Title: how to configure qmail relaying
Post by: Jon_Reynolds on December 15, 2004, 10:23:44 PM
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
Title: how to configure qmail relaying
Post by: nald on December 16, 2004, 03:38:31 AM
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
Title: how to configure qmail relaying
Post by: Jon_Reynolds on December 16, 2004, 09:44:59 PM
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