LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-13-2006, 09:56 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
Is it ok to install postfix and qmail in the same machine


Dear friends,

Wondering if it is possible that I install postfix and qmail in one single machine. Then use the postfix to send mail and the qmail to retrieve mail.

I ask this because part of the qmail isntallation require unintalling the sendmail and postfix, so I was wondering if leaving postfix in a machine already configured with qmail would lead to any kind of interruption.

thanks
 
Old 03-14-2006, 02:14 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Both qmail and postfix are sendmail replacements, ie MTAs (Mail Transport Agents). They're all designed to do the same thing - transport your mails.
I suppose you could install them side by side, but I wouldn't recommend it. Chances are that they will conflict in some way, unless you configure them very neatly.

So, if you're looking for an easy way out, I'd recommend uninstalling postfix first before installing qmail.

Why would you want to keep 2 programs to do the task that 1 program can handle? It would require double configuration effort, double effort to understand both systems if there's ever a problem (and there will be...)
 
Old 03-14-2006, 02:59 AM   #3
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi timmeke,

Thanks for your help. I want to do it because my company's setup is like that. We have two mail server, one postfix, one qmail. one for sending, one for receiving in order to do somekind of restriction for local sender and people who can send external mails.

I just want to try configuring the qmail and postfix in the same machine because I only have one computer at home, I want to test the installation. if I have two computer I will do each on different computer, but i only have one computer at home so I have to experiement both in one computer. hehe,

thanks friend!
 
Old 03-14-2006, 04:00 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
OK. Just make sure that they're never running at the same time, on your machine at home.
And avoid switching from one to the other too often, as this may require some changes that are not so obvious.
For instance, I know that postfix installation creates some symbolic links that make the names of typical sendmail binaries point to their postfix counterparts. qmail, also a sendmail replacement, may do the same.
Switching between the 2 would then involve recreating the symlinks.

Running them both at same time will probably fail too. Only one program or service can allocate port 25 (SMTP communication port). Binding 2 programs to the same port (if at all possible) will probably read to miscommunications.
 
Old 03-14-2006, 06:03 PM   #5
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi timmeke,

thanks alot ! ok sad....then I cannot use my laptop to run postfix and qmail testing simultaneously..haha, coz I have to maintain the postfix and qmail servers set up by my predecessor, but I never set up my own...so quite worried and wanna understand its function as muc as possible. especially worried about the thing about hackers, my intention is to set up one at home and hope many people try to hack it and I can learn to block hackers from that experiemental home computr hehehe,

anyway, thanks a lot for your replies.

regards
Niceman
 
Old 03-15-2006, 02:22 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
On second thought, it might be possible to configre one of the mail servers to listen to let's say port 25 on the "localhost" interface, whereas the other listens to port 25 on your network interface.
Or even better, if you have 2 NICs, you can make them run side by side, each listening to their own NIC's.
But you'll need to pull some configuration tricks out of your hat to pull this one off (you'll need to keep both configurations separated where needed - ie separate queue directories, separate logging, separate binary programs, etc).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix or Qmail? Jukas Linux - Software 1 08-19-2005 08:04 AM
qmail or postfix which is better??? kartheekpn Linux - Software 4 04-27-2005 04:07 AM
Who's the best, Postfix or qmail? angelascanio Linux - Software 3 03-12-2004 08:54 PM
Postfix/Qmail trouby Linux - Software 1 10-10-2003 01:22 PM
How do I install qmail-queue patch post install of qmail? cmisip Linux - Software 0 04-28-2003 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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