LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2006, 11:01 PM   #1
matt8534
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Postfix allow incomming email on Fedora Core 4


Hello,

I have a linux box running Fedora Core 4 as a web/email server (webserver works great). I am having problems configuring the email server. I am using postfix, dovecot, and squirrelmail. I am able to send messages from both outlook and squirrelmail to any email address as my ISP is filtering port 25 and I have configured postfix to just use my ISP's outgoing mail server.

My problem is my mail server isn't recieving mail from outside domains (I can send and recieve mail with addresses @mydomain.com). I have tried to connect to the mail server with outlook express and It won't connect, unless I point the incomming mail server to the private IP address of the server. Below is the error message that I get.

"The server responded with an error. Account: 'email.mydomain.com', Server: 'xxx.xxx.xxx.xxx', Protocol: POP3, Server Response: '-ERR Cannot connect to POP server xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx:110), connect error 10060', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC90"

My router is forwareding ports 25 and 110 to my server, no other firewall exists on my network.

Sounds to me that my postfix config file needs some tweaking. Any help will be greatly appreciated.

Thanks in advance!!!
 
Old 07-19-2006, 12:37 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'll admit to being a little confused here, but I assume you can send/receive mail on your internal network, but not receive from outside.

Postfix is sitting there listening on port 25 for incoming mail, so if your ISP has it blocked, it won't be able to receive external mail any more than it can send it.

When you send email externally, I guess you are relaying through your ISP's mail server - is that correct?

On the connect side, I'd expect you would need to use the private IP. Even without port blocking, trying to connect to you public IP probably won't work, as the name resolution doesn't work properly going out and back in (poor description, but I know it won't work for me and it's a long time since I read the explanation).

Sounds like your config is OK


Bill
 
Old 07-19-2006, 12:40 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
That error could mean anything. First of all, unless you want to use a numerical IP address, you need to get a domain. Outside mail servers have no idea where you are by what you named your email server. You actually need to be listed in a DNS server. Then, like everything else on the whole internet, the external mail servers can go to the DNS server, look up your numerical IP, and send the mail to you. This isn't magical. You can get free domains for dynamic IP's all over the place. http://www.ods.org/ is a good one. It actually costs money, but you can go change the IP associated with your domain any time you want.

The internet does not work based on what you have named your email server. You have to have a DNS entry. This is how all domains work. You can name your server anything you like, but how does any other server know what that name means. Say my dynamic IP, via DHCP from my ISP, is currently 65.123.45.9. That's not what it really is, but let's just say. I need some way to tell the whole internet that 65.123.45.9 means 'mydomain.net' Me naming my server isn't going to do that. So, I need to go and get a domain, and tell whatever site registers the domain to tell the whole internet my server's name and the IP. I might not be able to get that exact name. I might have to call it AwesomeMachine.i13.org because every domain the domain service registers ends with i13.org.

OK, once this is done all the mail servers on the whole internet will be able to find your mail server because they will look on one of the many DNS servers on the internet and resolve your actual IP of 65.123.45.9. If your IP changes, you have to go back and change the IP associated with your domain registry. Just go to ODS and check it out.
 
Old 07-19-2006, 10:48 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Hello, matt8534, and welcome to LQ.

The error message you posted regards port 110, which is not related to postfix, which should listen on port 25. To test whether you can reach your mail server (not your POP3 server) from outside your network, you can try telnetting from the outside:
Code:
telnet ip.add.re.ss 25
If you see a message like the following, then everything's fine:
Code:
Trying ip.add.re.ss...
Connected to ip.add.re.ss.
Escape character is '^]'.
220 hostname.domain.com ESMTP Postfix
In the above, ip.add.re.ss is your external IP address, i.e. the IP address assigned by your ISP.

If postfix doesn't answer as expected, then there are several possibilities:

1. your ISP is blocking port 25
2. your router isn't configured correctly to forward port 25
3. postfix isn't configured correctly

To test for the third possibility, log in to any computer inside your local network, possibly even the machine on which postfix is running, and try telnetting as above, but this time, use the postfix machine's (internal) IP address. If you still don't see the postfix greeting, then postfix isn't configured correctly and you need to read this and this. Otherwise, if you do get the postfix greeting, then it's not a postfix problem.

Last edited by Berhanie; 07-19-2006 at 11:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dovecot + postfix + fedora core 3 paul_mat Linux - Networking 0 08-29-2005 11:48 PM
Postfix SASL Fedora Core 4 carlmarshall Linux - Software 0 07-29-2005 11:36 AM
switching from Sendmail to Postfix on Fedora Core 2 d3funct Linux - Software 1 04-07-2005 12:35 PM
Postfix error on Fedora Core 3 basketkase999 Linux - Software 0 03-30-2005 09:48 PM
Mail Can't be received using postfix on fedora core 2 bpandey Linux - Networking 0 09-09-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration