Hi,
re the subject, the redirection actually goes from your WAN IP to your
internal IP. Incoming TCP connections on port 25 which are received by
your WAN interface need to be forwarded to your internal IP. However it
appears you've already done this.
The problem seems to be where your mail server is listening.
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
6210/master
I'm not sure how much you know so apologies if I'm telling you things you
already know.
All network traffic travels through an interface. In the case of a network
card, the interface is a physical one, that being a network connector on
the card. But Linux (and presumably other operating systems) also have
some virtual interfaces. One is for a network segment which is
specifically set aside for connections for the local host (i.e. the machine
itself). This can get a little confusing to get your head around, since
you can actually connect to your own machine by at least two ways (in your
case), your network address (the 192.168.x.x address) and via localhost
(127.0.0.1). Most of the time there is no difference in practice which you
use, but it does influence which interface your traffic goes through and if
you have any filtering or other rules set up on your own box, it will
influence this traffic like all other trafic coming in from the network.
To the point. You want to receive connections from other computers on your
network on port 25. Actually, you want to receive connections from
anywhere on port 25, but it could just as easily just be your network. The
point is that you want to receive connections from other computers, not
just yours. But your SMTP server is only listening on the loopback
interface, the interface with the address 127.0.0.1. Only your own machine
can connect to it on this interface.
As an example, try typing these two commands:
telnet 127.0.0.1 25
telnet <your 192.168.x.x address> 25
Type "quit" to exit the SMTP server login.
As things are now, the first one will work and connect to your SMTP server
while the second will not.
In order to make it work, you'll need to make it so that it listens on your
192.168.x.x interface. This is presumably done by editing some config
file. Which file this is will depend on which SMTP server you are using.
Note that you will probably want it to continue to listen on 127.0.0.1 as
this is needed for local deliveries, so you will probably want to "bind" it
to 0.0.0.0 which tells it to listen on all available network interfaces.
Examine your SMTP sserver configuration file(s) and/or documentation for
more information on how to do this.
Hope this helps,
Geoff.
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]