Results 1 to 6 of 6
Hi all,
I want to accept 2 connections(10.182.4.113 and 10.182.3.113) and deny all other connections to my sendmail server.
my access tablle entry is
Code:
/etc/mail/access
# by default we ...
- 12-09-2007 #1
Urgent help -- How to deny access to sendmail??
Hi all,
I want to accept 2 connections(10.182.4.113 and 10.182.3.113) and deny all other connections to my sendmail server.
my access tablle entry is
Look forward for your helpCode:/etc/mail/access # by default we allow relaying from localhost... localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY 10.182.4.113 RELAY 10.182.3.113 RELAY
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 12-09-2007 #2
You could use iptables to accept tcp traffic to your smtp port (I think this is port 25) from these two addresses, then reject it from any other source.
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 12-09-2007 #3
You could also use hosts.deny and hosts.allow in order to configure your system.
For example, in hosts.deny you could write:
sendmail: ALL
And in hosts.allow:
sendmail: "the ip address you want to allow"
I am not sure if the syntax of hosts.allow and hosts.deny changes depending on the OS.
Just type "man hosts.allow" and "man hosts.deny" to find more information for your OS.
Cheers,
MazerI was seduced by SUSE 5.1.
Registered Linux User #451562
- 12-10-2007 #4
Thanks hazel & mazer.
As i don't know abt iptables,I think modifing /etc/hosts.allow , hosts.deny suits my requirement.I read about these two and found a new file /etc/inetd.conf.
Do i need to create this inetd.conf file too? currently i don't have this file.- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 12-10-2007 #5
Hi Lakshmipathi,
you do not need the /etc/inetd.conf. I even like that you do not have installed that service.
inetd.conf configures some daemons like ftpd, telnetd, fingerd and so on that you do not really need (these days) and that are only a security risk. Inetd.conf handles how these daemons have to respond when somebody from the internet tries to access your computer using those daemons. I do not think that you can use inetd to restrict sendmail, but I am not sure about that. I am sure however that hosts.allow and hosts.deny do this job as well. When I configure my computers I always try to deinstall all services (daemons) which are not really necessary in order to decrease the security risk on these machines.
Hope this helps,
MazerI was seduced by SUSE 5.1.
Registered Linux User #451562
- 12-11-2007 #6
.Thanks mazer...Thanks for valuable info.
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote
