Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Postfix Connection Refused Error

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 2 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Sep 2009
Location: Geelong, Australia
Posts: 9
Unhappy Postfix Connection Refused Error

Hi guys and girls, hopefully someone will know the answer to this question as it is driving me nuts. I have Postfix running on our local server, sending out alerts and stuff, however I have now noticed that it cannot receive mail for the local users on that server. I checked the logs on the local server and there is no mention of the mail even getting to the server. I checked the logs of the server I was sending the mail from and found the following error in the logs:
DomainName[IPAddress] Connection Refused [Port]
I have shutdown the firewall everything, and still cannot get it to send mail. I thought it was really strange that the logs showed nothing on the receiving end. Any help anyone could provide would be fantastic.
Wraith86 is offline  


Reply With Quote
Old 2 Weeks Ago   #2 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 1,032
test it with telnet
telnet email - Google Search

that way you can find out if its a firewall, network, or smtp server issue.

report back with errors found above if you need more help
jledhead is offline   Reply With Quote
Old 2 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Sep 2009
Location: Geelong, Australia
Posts: 9
Hi, I tried with telnet and got the same connection refused error. I use csf as a firewall and have the ports added. I tired with the firewall turned off and still got the same error.
Wraith86 is offline   Reply With Quote
Old 2 Weeks Ago   #4 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 1,032
is postfix listening? can you try to connect over telnet on that machine?

you can run
Code:
lsof -ni
to see what port its listening on
jledhead is offline   Reply With Quote
Old 2 Weeks Ago   #5 (permalink)
Just Joined!
 
Join Date: Sep 2009
Location: Geelong, Australia
Posts: 9
No, I recieve the same connection refused error when I attempt to telnet on port 25. This is the result of that

command you gave me. I find it strange that all the others have ports where this one only says smtp:
master 3644 root 12u IPv4 8378 0t0 TCP 127.0.0.1:smtp (LISTEN)
I also had another thought, I don't control the DNS settings directly, but could this be caused by a missing MX record? In the logs the domain name is being resolved however I was talking with another staff member and they didn't believe we have an MX record for this particular server.
Wraith86 is offline   Reply With Quote
Old 2 Weeks Ago   #6 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 1,032
has this ever worked or are you just now wanting this funtionality?

It sounds like postfix isn't listening for incoming connections, as shown from your lsof post, its listening on 127.0.0.1 ONLY

your solution might be similar to this
NEOHAPSIS - Peace of Mind Through Integrity and Insight
jledhead is offline   Reply With Quote
Old 2 Weeks Ago   #7 (permalink)
Just Joined!
 
Join Date: Sep 2009
Location: Geelong, Australia
Posts: 9
You were right, postfix was only listening to localhost! Thanks for your help man.
Wraith86 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:23 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2