Author: Tim Pizey Date: To: Oxfordshire Linux User Group Discussion List Subject: Re: [OxLUG] Closing port 25 to external connections
On Tuesday 17 June 2008 00:09:46 Tim Pizey wrote: > Hi,
>
> I have a server running RH 5 (?) circa 2000 which doesn't receive any valid incoming mail that I can discern,
> but needs to be able to send mail to me and to itself.
> It is receiving so much spam that the disks fill and the usage goes to 6.
>
> It is running qmail, which cannot be configured to quietly drop mail.
>
> So it was suggested that I close port 25 to incoming connections.
>
> There is no mention of smptd in /etc/inetd.conf
>
> /etc/services gives
> smtp 25/tcp mail
>
> It looks like we do not have iptables installed, but do have ipchains.
> (both of which are as yet unknown to me).
>
> Digging a bit further it seems we are using tcpserver and have quite possibly been running
> as an open relay since 2000 as /etc/tcprules contained all:allow
>
> So I have changed /etc/tcprules to read
> 127.:allow
> !127.:deny
changed this to
127.:allow
:deny
and all working, always seems to happen just after I press send.