Solved

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

Posted on 2004-08-03
6
413 Views
Last Modified: 2013-12-15
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.
0
Comment
Question by:chaoslord
  • 3
  • 3
6 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11708522
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?
0
 

Author Comment

by:chaoslord
ID: 11708810
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 optoceramic.com and the server is mail.optoceramic.com

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?

0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11709442
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.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:chaoslord
ID: 11709599
Increased points given,

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

# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 mail.optoceramic.com ESMTP Postfix
quit
221 Bye
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 400 total points
ID: 11710069
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 mail.optoceramic.com 25
Trying 67.153.124.198...
telnet: connect to address 67.153.124.198: Operation timed out
telnet: Unable to connect to remote host

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

finch:~ khk$ telnet mail.optoceramic.com
Trying 67.153.124.198...
Connected to bostonappliedtechinc-bostonappliedtechinc-psr2174424.z124-153-67.customer.algx.net.
Escape character is '^]'.

TA 612 IAD


user:
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
> optoceramic.com
Server:         192.168.1.254
Address:        192.168.1.254#53

Non-authoritative answer:
optoceramic.com mail exchanger = 0 mail.optoceramic.com.

Authoritative answers can be found from:
optoceramic.com nameserver = ns19.zoneedit.com.
optoceramic.com nameserver = ns8.zoneedit.com.
mail.optoceramic.com    internet address = 67.153.124.198
>


As you can see, nslookup reports the machine mail.optoceramic.com 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.

0
 

Author Comment

by:chaoslord
ID: 11712161
It works now, thx for your help :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now