LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-07-2008, 11:24 AM   #1
spaceageliving
Member
 
Registered: Aug 2007
Distribution: CentOS
Posts: 48

Rep: Reputation: 17
Postfix configuration for port 25


I'm having trouble getting postfix to accept connections on port 25 (on CentOS 5).

My server hostname is different from the main.cf setting, but the hostname I have set for main.cf is working in DNS both forward and reverse (mail.spaceageliving.com). Is this a potential problem?

# /usr/sbin/postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = $myhostname, localhost
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
myhostname = mail.spaceageliving.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

# netstat -nalp | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 4774/master
 
Old 11-07-2008, 11:37 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
netstat shows that you're only listening for internal connections. if you want to accept external connections, you should change the value of inet_interfaces.
 
Old 11-07-2008, 11:49 AM   #3
spaceageliving
Member
 
Registered: Aug 2007
Distribution: CentOS
Posts: 48

Original Poster
Rep: Reputation: 17
So beyond these two settings:

myhostname = mail.spaceageliving.com
inet_interfaces = $myhostname, localhost

what else is required?
 
Old 11-07-2008, 11:57 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I would set inet_interfaces = all You need to restart postfix after that -- reloading isn't good enough. If that doesn't work, maybe there's something in master.cf that's restricting the IP/port.
 
Old 11-07-2008, 12:01 PM   #5
spaceageliving
Member
 
Registered: Aug 2007
Distribution: CentOS
Posts: 48

Original Poster
Rep: Reputation: 17
OK, thanks a lot--I was using reload...after doing a hard stop/start, netstat is now showing master listening on port 25 for my IP address.

Onward...
 
Old 11-07-2008, 12:02 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Excellent.
 
  


Reply



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
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM
PostFix configuration jscedunn Linux - Enterprise 6 01-31-2007 11:49 AM
Postfix configuration help. mdpolaris Linux - Software 7 10-06-2006 02:31 AM
timedia 4 port serial port i/o card configuration binu_edl Linux - Hardware 0 03-09-2006 09:39 AM
Using postfix on a port other than 25 newtolinux83 Linux - Networking 7 09-03-2003 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:14 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