On Fri, 07 Apr 2006 21:15:06 -0700, shrini wrote:
> Hi Davide.
>
>
>> Something make me thing that you have a) a firewall blocking connection
>> from other systems to your smtp or b) postfix bind on 127.0.0.1 only.
>
>
>
> There is no firewall running.
> i have given that "inet_interfaces=all"
>
> How to check that it binds only on 127.0.0.1? is there any way?
>
> Thanks,
> T.Shrinivasan.
Any way to test if your mail server software only bind to 127.0.0.1 ?
Sure! you can use the netstat command. Usually located under /bin/netstat.
Netstat can show the connection that are open for use and the currently
opened connections.
The syntax would be
netstat -a -n -u -t -w
The switches :
-a show All port ready for connection(s)
-n no name resolution (DNS)
-u show UDP "connection(s)"
-t show TCP connection(s)
-w show raw connection(s)
And if you only want to filter for mail (SMTP) port,
netstat -a -n -u -t -w | grep :25
If I may, a word of caution...
Running an open SMTP server on the Internet without a firewall
need some Very careful configuration. Not doing so is a guarantee
that some spammers will find your server and use it to relay its
own spam instead of your mail.
That might be a problem to you :
1) the resources in disk use, CPU time and network use will all
be consummated by someone else.
2) Sending spam (or Forwarding it) is a good way to end up on a
black hole list. Once inserted on such a list, may other mail server
so configured will find that your server is to be ignored and
suddenly you will end up with a much less mail that you wish
and a lot more mail that you do not...
So take a good look at configuration and firewalling...
For firewall, an easy program to configure firewall rule
is FireStarter. It's an graphical front end that will
help you build your rules. It is is available at :
http://www.fs-security.com/
Well I hope it help.