Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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?
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.
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
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
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
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...
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.