LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2008, 06:29 PM   #1
jono_tt
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Lightbulb Suse 10.3- Postfix - Connection refused


Background:
I recently came across this problem and after searching for hours I still did not get the entire solution in one thread. I eventually resolved the problem using other information picked up from other threads within the Linux Questions site.

I thought i would make it easier to find in one place by posting my solution here.

Problem:
After setting up Postfix and configuring the config files, when trying to access the server on port 25 by telnet to the localhost (127.0.0.1) we gain access to the server. If you telnet to another interface on the same machine for example 192.168.30.x on port 25 you get "Connection refused".


Solution:
Edit file - /etc/postfix/main.cf
Change:
From - #inet_interfaces = all
To - inet_interfaces = all
Change:
From - #mynetworks_style = subnet
To - mynetworks_style = subnet
Change:
From - mynetworks = 127.0.0.0/8
To - mynetworks = 192.168.30.0/24, 127.0.0.0/8

Edit file - /etc/postfix/master.cf
Change:
From - smtp inet n - n - - smtpd
To - 0.0.0.0:smtp inet n - n - - smtpd

Then restart the Postfix server:
/etc/postfix/postfix stop
/etc/postfix/postfix start



I hope this helps.
 
Old 06-24-2008, 06:36 PM   #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'm not surer where you looked. This is from the postfix site under documentation/standard configuration examples

http://www.postfix.org/STANDARD_CONF...ON_README.html
 
  


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
connection refused for postfix - cant download mail thandika Linux - Server 2 10-02-2007 07:05 AM
Postfix SMTP config problems, connection refused yallu Linux - Software 1 04-12-2005 04:49 AM
Postfix/Cyrus Connection refused. Why? amano Linux - Software 0 01-10-2005 04:36 AM
POSTFIX holding mail in qeue, won't deliver, connection refused bentman78 Linux - Software 2 10-27-2004 07:11 AM
Connection Refused - Postfix seanfitz Linux - Networking 1 01-07-2004 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 AM.

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