LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-13-2007, 11:54 AM   #1
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Rep: Reputation: 15
how to make postfix listen for 2 IP?


hi,
I have a linux+postfix mail server, and it has 2 internal IP, and I want to make postfix listen to both of them, so when emails coming in, postfix can deliver them to diffence public IP depend on which internal IP them send to.
anyone has idea? and does someone know any mail agent other than postfix can handle 2 IPs sametime?
thanks in advance!
jimmy
 
Old 09-14-2007, 05:08 AM   #2
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Hi

Check under the mynetworks and , the default for postfix is to listen on any avaliable NIC
 
Old 09-14-2007, 08:53 AM   #3
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Original Poster
Rep: Reputation: 15
you are right, by default "inet_interfaces = all",
but it actually only stick to the primary interfaces, and all smtp mail go thought it.
 
Old 09-15-2007, 07:32 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You can start two listening processes through master.cf, but, short of using two postfix instances, that will not solve your problem. See here.
 
Old 09-24-2007, 12:42 PM   #5
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Original Poster
Rep: Reputation: 15
please tell me what should I add in master.cf ? so I can make postfix listening 2 Ip on diffent ports. like following:

192.168.1.102 port25
192.168.1.102 port26

thanks!
 
Old 09-24-2007, 07:01 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You should read the man page:
Code:
man 5 master
What you'd put in master.cf is:
Code:
192.168.1.102:25      inet  n       -       n       -       -       smtpd
192.168.1.102:26      inet  n       -       n       -       -       smtpd
But, as stated previously, this will not solve your problem.
 
  


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
how to make X.org listen for incomming connections ? qwijibow Linux - General 24 12-23-2009 02:42 AM
Make Terminal listen on Com Port? Ciralia Fedora 2 06-07-2007 08:26 AM
Postfix won't listen on loopback muff Linux - Software 2 09-07-2005 04:14 PM
How to make a program to listen on a Particular port palanisaravanan Linux - General 4 04-14-2004 06:43 PM

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

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