FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a server running Fedora 4. I've been having trouble getting email to work, and just discovered port 25 is closed. This is despite the firewall having port 25 open...
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
However, when I do this from another computer: telnet 209.190.35.138 25
I get connect to address 209.190.35.138: Connection refused
When I try to check email using Outlook Express in Windows, I get "Server teminated connection"
http, ftp and ssh all work just fine. But for some reason, port 25 is blocked and I can't unblock it.
If you mean the company that gives me access to the Internet here at my office, no. Both my other servers have no problem with email.
This new server is with a company I've not used before. It's possible they're blocking port 25 (and I've asked just in case), but it would be extraordinary if they did given this is a dedicated server and needs to send and receive email.
NOTE: I can "telnet localhost 25" just fine.
It's "telnet 209.190.35.138 25" from another machine (own PC using secureCRT and telnet while logged in to my other web server) that cause the problem.
So it seems to me, the issue mus be around something preventing connections from port 25 from outside the server itself.
And I'm wondering if there's something obvious on the box itself that I've overlooked (e.g. I'm know nothing about iptables, so may have misunderstood what's I'm seeing there).
For example, the line...
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
...appears at the bottom of the iptables report when I type "service iptables status" Is this the problem? Baring in mind the file also contains...
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
Last edited by 60s TV Batman; 03-19-2007 at 09:54 AM.
What are you using as your MTA? If you are using Sendmail, by default it will not accept connections from anything accept localhost. If you show us "netstat -pant" as root that could be helpful.
What are you using as your MTA? If you are using Sendmail, by default it will not accept connections from anything accept localhost. If you show us "netstat -pant" as root that could be helpful.
Before posting here, I'd commented out the line that has Sendmail listen only on localhost, and had Fedora restart sendmail.
It may be my problem isn't a blocked port at all. As of right now, my /etc/resolv.conf file doesn't contain the IPs of my hosting companies nameservers. I suspect that is the main problem.
This line:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 12666/sendmail: acc
That line says that sendmail is only listening on 127.0.0.1. Only connections coming from 127.0.0.1 will be accepted. If send mail was listening for any incoming connection the line would say this:
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 12666/sendmail: acc
You definitely need to check out your configuration to see what is up.
To test this out further, you say you can telnet localhost 25 just fine, but replace localhost with the IP address of the network adapter.
I'm using FC6 and here is what I have in my sendmail.mc:
The top line was what was originally there (with out the dnl # and tailing dnl). I replaced it with the bottom line. I believe if you restart sendmail after that it will compile your sendmail.mc file to the sendmail.cf for you. Or you can do m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf with root privey. Back up your old cf file.
Quote:
It may be my problem isn't a blocked port at all. As of right now, my /etc/resolv.conf file doesn't contain the IPs of my hosting companies nameservers. I suspect that is the main problem.
That wouldn't stop you from at least making an initial connection to port 25.
Last edited by benjithegreat98; 03-20-2007 at 11:05 AM.
NOTE: The Addr=127.0.0.1 line was already commented out. I just added in your line. I then entered service sendmail restart. Then I entered netstat -pant and got...
if m4 is having trouble then the make -C /etc/mail command will fail because it depends on the presence of m4
You can look at /etc/mail/Makefile to see what the make command is doing.
The main problem was /etc/resolv.conf didn't contain the IP addresses of my server's hosting company's nameservers. As a result, Yum wouldn't work.
Yesterday, I managed to find out what the IP addresses are. As soon I entered them in resolv.conf, I was able to use Yum to install sendmail-cf. Then I was able to update sendmail.cf via sendmail.mc as per normal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.