LinuxQuestions.org
Visit Jeremy's Blog.
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 02-05-2010, 12:01 PM   #1
fandar
Member
 
Registered: Oct 2006
Posts: 61

Rep: Reputation: 15
Sendmail and Qmail on one server


Hi, is possible to run Qmail and Sendmail on one server, both on another port?

I need qmail for Plesk and sendmail for OpenEMM
Now qmail is working for plesk, but if I install qmail ( I tried install it also from source) and try to run sendmail, I still get this error:
Starting sendmails: listener sendmail: illegal option -- q

which probably means, that there isnt full sendmail version.

Thank You
 
Old 02-06-2010, 03:45 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Mind that qmail has its own sendmail binary, so it can work with programs that use sendmail for mailing. If you have installed sendmail, you can rename the qmail's sendmail binary to something else, so you can use the original sendmail.

Regards
 
Old 10-17-2013, 11:26 AM   #3
liongate
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
Question

Quote:
Originally Posted by bathory View Post
Mind that qmail has its own sendmail binary, so it can work with programs that use sendmail for mailing. If you have installed sendmail, you can rename the qmail's sendmail binary to something else, so you can use the original sendmail.

Regards
I'm having the same issue -- can somebody elaborate on exactly how to accomplish this?
 
Old 10-17-2013, 11:49 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by liongate View Post
I'm having the same issue -- can somebody elaborate on exactly how to accomplish this?
Well, you do exactly what was said. You rename the qmail 'sendmail' file to some other name, leaving the original sendmal program untouched.
 
Old 10-17-2013, 11:54 AM   #5
liongate
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
Question

Sorry -- I'm a bit of a novice with Linux. Where is the file located? Are there any references to this file that also need to be altered? Are any port changes required to allow both installations to function without interfering with one another?
 
Old 10-17-2013, 12:08 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by liongate View Post
Sorry -- I'm a bit of a novice with Linux. Where is the file located?
You don't say what version/distro of Linux you're using, but you can either run "which sendmail", or "find / -name sendmail" to find the file (you'll need to be root to run the find command).
Quote:
Are there any references to this file that also need to be altered?
The references are links...as long as the file name remains the same, the link will remain intact.
Quote:
Are any port changes required to allow both installations to function without interfering with one another?
They both can't use the same port, so yes, you'll have to modify one of them. Which one is up to you, and the instructions will vary depending on the service, of course. Google can give you some good how-to's.

If you're brand new to Linux, how did you manage to get handed a qmail/sendmail server to maintain? Neither is particularly easy to manage effectively, especially if both are running on the same box.
 
Old 10-17-2013, 12:42 PM   #7
liongate
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by TB0ne View Post
You don't say what version/distro of Linux you're using, but you can either run "which sendmail", or "find / -name sendmail" to find the file (you'll need to be root to run the find command).
I am using Centos 6 with Plesk 11.

Quote:
Originally Posted by TB0ne View Post
The references are links...as long as the file name remains the same, the link will remain intact.
I'm confused here -- you're advising me to change the file name, thus don't the links need to be changed somewhere as well?

Quote:
Originally Posted by TB0ne View Post
They both can't use the same port, so yes, you'll have to modify one of them. Which one is up to you, and the instructions will vary depending on the service, of course. Google can give you some good how-to's.
I'll do some further digging on that.

Quote:
Originally Posted by TB0ne View Post
If you're brand new to Linux, how did you manage to get handed a qmail/sendmail server to maintain? Neither is particularly easy to manage effectively, especially if both are running on the same box.
I've been running a website for a number of years and have recently moved from my hosted plan to a VPS. I don't like the mailing list program I've been using, nor do I care to pay a monthly charge for it, so I'm moving to OpenEMM. Nothing I can't learn, but there's a curve...
 
Old 10-17-2013, 03:18 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by liongate View Post
I am using Centos 6 with Plesk 11.

I'm confused here -- you're advising me to change the file name, thus don't the links need to be changed somewhere as well?
Right. Read up on what a symbolic link is. A good analogy is where you live..."home". If I say "your home", you think of where you live NOW. If you move...the location of "home" has changed...not the name. So if there are links to a /bin/sendmail file, as long as there is SOMETHING named '/bin/sendmail', the link will be valid.
Quote:
I've been running a website for a number of years and have recently moved from my hosted plan to a VPS. I don't like the mailing list program I've been using, nor do I care to pay a monthly charge for it, so I'm moving to OpenEMM. Nothing I can't learn, but there's a curve...
Always fun. I'd suggest either picking one or the other...you really don't need BOTH, unless you're doing something exotic.
 
1 members found this post helpful.
Old 10-17-2013, 05:07 PM   #9
liongate
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
I have renamed the file named 'sendmail' in the /var/qmail/bin/ folder to 'qmail_sendmail'

The command # find / -name sendmail yields the following:

/usr/sbin/sendmail
find: File system loop detected; `/var/named/chroot/var/named' is part of the same file system loop as `/var/named'.
/etc/rc.d/init.d/sendmail
/etc/sysconfig/sendmail

The file named 'sendmail' in the /usr/bin/ folder is actually a link to /etc/alternatives/mta. The mta file at this address is simply a link back to the 'sendmail' file I have renamed (/var/qmail/bin/sendmail).

After renaming 'sendmail' to 'qmail_sendmail' my email still seems to be working, although I haven't restarted the server. When I load sendmail by starting openemm I get the following errors:

Starting sendmails: listener mail queues Failed to start /usr/sbin/sendmail (No such file or directory)
ADMIN Failed to start /usr/sbin/sendmail (No such file or directory)
Failed to start /usr/sbin/sendmail (No such file or directory)
QUEUE Failed to start /usr/sbin/sendmail (No such file or directory)
Failed to start /usr/sbin/sendmail (No such file or directory)
MIDQUEUE Failed to start /usr/sbin/sendmail (No such file or directory)
SLOWQUEUE Failed to start /usr/sbin/sendmail (No such file or directory)
done.

Obviously, this is because openemm is trying to load the sendmail MTA in the /var/qmail/bin/sendmail folder, which has been renamed.

I'm confused.
 
Old 10-17-2013, 05:36 PM   #10
liongate
LQ Newbie
 
Registered: Oct 2013
Posts: 8

Rep: Reputation: Disabled
Perhaps it's worth noting that in the /usr/sbin/ folder there is a file called sendmail.sendmail. Still, I'm not seeing the actual sendmail binary in that folder, which is where I'd expect it to be. What am I missing here? If I run yum install sendmail I'm advised sendmail is already installed.

These do look like binaries, though:
/etc/rc.d/init.d/sendmail
/etc/sysconfig/sendmail

It looks like sendmail.sendmail is also a binary, and it does exist in the etc/sbin folder. Should I be redirecting the link sendmail to sendmail.sendmail?

Last edited by liongate; 10-17-2013 at 07:07 PM.
 
  


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
Mail server software? Qmail, Sendmail, Exim, Postfix? Running on Slackware, Assist? dtetech Linux - Software 8 05-12-2008 10:57 PM
mail server setup fc4 (postfix, qmail with mysql 5?) sendmail dtra Linux - Software 1 04-10-2006 10:17 PM
qmail as exchange for sendmail server srikz Red Hat 2 09-28-2004 11:02 PM

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

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