Hope this is the right way to form this question...
netstat -tna gives the following output (concat)
Code:
tcp 0 0 127.0.0.1:4011 0.0.0.0:* LISTEN I am trying to set up an email server for my website, so that oscommerce is able to send out it's emails etc, etc. My isp (comcast) blocks smtp port so to work around that I'm using a different port. Yesterday when I did a port scan of my external IP address and scanned port 4011 i got that it was open and responding, today that is not the case. So I did a netstat and the preceding output is what I got. so i'm assuming that I cannot get to that port because my internal ip address mapped to my external ip via my router is not connect with this port 4011, so I cannot telnet to it and consequently it cannot send messages to the outside world. Is there a way to have this port listening on a different interface (192.168.1.2 exactly) Thank you for any help and sorry if this question is ridiculous, I'm not sure how to even form it or if this is the way to go about getting done what I need done. I'm not entirely a linux newbie but I am fairly inexperienced in this type of stuff. By the way I'm using Postfix for email service if that is relevant. thank you again Ken |
Add a p to your netstat parameters. That will show you the program that is using the socket.
Quote:
|
Quote:
Code:
tcp 0 0 127.0.0.1:4011 0.0.0.0:* LISTEN 3773/master But it looks like this is using two different ports? |
Quote:
k |
I've never set up an MTA so I don't know how to configure one. Maybe someone who knows how to configure Postfix can jump in here, or you could read the user manual.
http://www.postfix.org/ |
Yes that would be your postfix process.
Code:
mail:~# netstat -lanp | grep :25 http://www.postfix.org/BASIC_CONFIGU...html#relayhost Quote:
|
Quote:
So my netstat says postfix is running and it's listening on all interfaced on port 4011. That being the case why do I continue to receive cannot connect port 25 errors when sending emails to myself? Thank you for your replies. Ken |
You keep saying you get the error can't connect to port 25 but you never state where this error appears..
What you are doing to when the error shows up? Does it appear on the Screen ? Is it in some log file ? you need to provide more info. For all I know your Mail Client is trying to connect to to the mail server via the standard port (25).. I would get a new ISP.. Yours sounds horrendous for a business, blocking ports limiting email. not very conducive to business needs. |
Quote:
Code:
Mail ID Sent From To Size Status Quote:
I appreciate the help you've given. Ken |
I sent an email from commandline by telneting to my mail.domain.com 4011.
Here is the maillog output for that session. Hopefully this may shed some light on something. Code:
Mar 30 15:37:10 domain postfix/smtpd[6131]: connect from localhost.localdomain[127.0.0.1] I've edited out my domain and ip information. Thank you Ken |
Since you are obscuring the domain and IP info it's hard to tell exactly what is going on..
My best guess is that your ISP only allows connections on Port 25 (SMTP) to it's own Email server, and will not allow you to send from your mail server directly to any other mail server. The reason that is done is to prevent spamming and SPAM worms on Windows boxes from inundating the internet with Junk. If that's the case then using the relay host as I suggested earlier may be your only option. Alternately a Mail server is going to try and deliver mail to Port 25, so by running your mail server on port 4011, no-one can deliver to you. |
All times are GMT -5. The time now is 12:22 AM. |