Can't receive mail from internet mail service like yahoo and hotmail.

Hi i'm currently trying to set up a Linux mail server for the company i'm working in. I must admit I have very little knowledge in Linux and NT administration so treat me like a complete newbie.

So far I have Postfix installed on the Linux machine with RH 9.0 distribution. From variouse articles I found in the web, i was able to configure it to send mail and receive locally. But I can't get it to receive mail from internet mail services like Yahoo and Hotmail.

Don't know what to do now, please help.

Not sure what information you guys need, so i will wait till someone ask for it ( please also include the complete command structure).

Thx in advance.
Who is Participating?
Karl Heinz KremerConnect With a Mentor Commented:
You did this from your local host, which means that if postfix is running, and you don't have a firewall on the local machine, it should work (which it does).

You need to check this from a remote machine (outside of your own subnet). I just did this, and it did not work:

finch:~ khk$ telnet 25
telnet: connect to address Operation timed out
telnet: Unable to connect to remote host

When I try this to teh default port, I get this:

finch:~ khk$ telnet
Connected to
Escape character is '^]'.

TA 612 IAD

telnet> quit
Connection closed.

This means that I can resolve the address, and can connect with just telnet, but when I try to use port 25, I don't get a connection.

The good news is that your DNS MX record is set up correctly:

finch:~ khk$ nslookup
> set type=mx

Non-authoritative answer: mail exchanger = 0

Authoritative answers can be found from: nameserver = nameserver =    internet address =

As you can see, nslookup reports the machine correctly as mail exchanger.

I guess that once you talk to your ISP and have them enable port 25 you should be OK. Just make sure that you are not relaying emails that are not sent to your own domain. The reason why your ISP has disabled this port is that it can be used to send SPAM by abusing mail servers that are not correctly setup.

Karl Heinz KremerCommented:
There are two ways you can receive email: If your server is known as "mail exchanger" for your domain, any mail server on the Internet can directly connect to your machine and deliver mails for your domain. For this to work, you need to setup the server (and your firewall!) so that it can accept these connections.
If your provider collects email for you in e.g. a POP3 account you need to retrieve these mails first, before you can submit them to your Postfix server. One option is to use "fetchmail" to retrieve the emails (this is what  I'm using at home for my own domain).

What's your setup? How did you receive emails before you installed Linux?
chaoslordAuthor Commented:
thx for the quick reply khkrerner,

We are currently using the mail service provided by our ISP, but want a mail server of our own for more control. I have registered another domain name to practice with before messing with our current one. The DNS setup is hopefully correct, maybe you can check it for me? the domain name is and the server is

You mentioned firewall, we do have a router/firewall that the ISP set up for us. How do i set up the firewall to accept outside connections? Do i have to call the ISP to do it or just change some configuration file?

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Karl Heinz KremerCommented:
YOu need to open up port 25 on your firewall. I'm behind a pretty restrictive firewall myself right now, so I cannot test your connection. I will however be able to do this in a couple of hours.
chaoslordAuthor Commented:
Increased points given,

Not sure if this is the way to check if port 25 is open, but here it is:

# telnet 25
Connected to
Escape character is '^]'.
220 ESMTP Postfix
221 Bye
chaoslordAuthor Commented:
It works now, thx for your help :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.