Solved

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

Posted on 2004-08-03
6
418 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 115
Linux Real Time Memory on Distinct 24 Cycle 7 44
Upgraded from Debian 7 to 8.7 and got black screen 20 99
Unix Help with:  mailx -s 17 59
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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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