sendmail/qmail both run on the same server. Which used to send emails?












2














sendmail and qmail both run on the same server. How can I know the which one is used to send email ?



I have a PHP application that sends email via the mail() function. The SMTP server it uses has both process running.
It is a server used for live applications, so I can't stop one process to do some tests.










share|improve this question
























  • I'd make sure that the machine really is as you describe. It's possible to get confused about these things, especially as most Unix/Linux MTSes have a sendmail program image file that is nothing whatsoever to do with the Sendmail software package. There's almost never a need to set up a system in this way with two different MTS softwares running in parallel. (Multiple instances of one package is as exotic a configuration as things normally get.)
    – JdeBP
    Jun 18 '11 at 12:45
















2














sendmail and qmail both run on the same server. How can I know the which one is used to send email ?



I have a PHP application that sends email via the mail() function. The SMTP server it uses has both process running.
It is a server used for live applications, so I can't stop one process to do some tests.










share|improve this question
























  • I'd make sure that the machine really is as you describe. It's possible to get confused about these things, especially as most Unix/Linux MTSes have a sendmail program image file that is nothing whatsoever to do with the Sendmail software package. There's almost never a need to set up a system in this way with two different MTS softwares running in parallel. (Multiple instances of one package is as exotic a configuration as things normally get.)
    – JdeBP
    Jun 18 '11 at 12:45














2












2








2







sendmail and qmail both run on the same server. How can I know the which one is used to send email ?



I have a PHP application that sends email via the mail() function. The SMTP server it uses has both process running.
It is a server used for live applications, so I can't stop one process to do some tests.










share|improve this question















sendmail and qmail both run on the same server. How can I know the which one is used to send email ?



I have a PHP application that sends email via the mail() function. The SMTP server it uses has both process running.
It is a server used for live applications, so I can't stop one process to do some tests.







email sendmail






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 5 at 13:25

























asked Jun 17 '11 at 12:15









Cedric

482148




482148












  • I'd make sure that the machine really is as you describe. It's possible to get confused about these things, especially as most Unix/Linux MTSes have a sendmail program image file that is nothing whatsoever to do with the Sendmail software package. There's almost never a need to set up a system in this way with two different MTS softwares running in parallel. (Multiple instances of one package is as exotic a configuration as things normally get.)
    – JdeBP
    Jun 18 '11 at 12:45


















  • I'd make sure that the machine really is as you describe. It's possible to get confused about these things, especially as most Unix/Linux MTSes have a sendmail program image file that is nothing whatsoever to do with the Sendmail software package. There's almost never a need to set up a system in this way with two different MTS softwares running in parallel. (Multiple instances of one package is as exotic a configuration as things normally get.)
    – JdeBP
    Jun 18 '11 at 12:45
















I'd make sure that the machine really is as you describe. It's possible to get confused about these things, especially as most Unix/Linux MTSes have a sendmail program image file that is nothing whatsoever to do with the Sendmail software package. There's almost never a need to set up a system in this way with two different MTS softwares running in parallel. (Multiple instances of one package is as exotic a configuration as things normally get.)
– JdeBP
Jun 18 '11 at 12:45




I'd make sure that the machine really is as you describe. It's possible to get confused about these things, especially as most Unix/Linux MTSes have a sendmail program image file that is nothing whatsoever to do with the Sendmail software package. There's almost never a need to set up a system in this way with two different MTS softwares running in parallel. (Multiple instances of one package is as exotic a configuration as things normally get.)
– JdeBP
Jun 18 '11 at 12:45










1 Answer
1






active

oldest

votes


















2














You will have to look in your php.ini file, under [mail function]. Here, the path to the mail sending binary is specified. Whatever is specified here, the mail() function in PHP will use.



sendmail_path = /usr/sbin/sendmail -t -i


The above one should be the default. So, if you haven't changed anything, PHP will use sendmail.



As @JdeBP mentions, you can also take a quick look at the headers of the mails received. If you look under the various Received sections, you will find some identification of the server software being used.






share|improve this answer























  • Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
    – Ignacio Vazquez-Abrams
    Jun 17 '11 at 12:25










  • Oh, okay. Yeah, I'd trace down that one. Like your option though.
    – slhck
    Jun 17 '11 at 12:28










  • +1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
    – JdeBP
    Jun 18 '11 at 12:40










  • While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
    – JdeBP
    Jun 18 '11 at 12:50











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f298494%2fsendmail-qmail-both-run-on-the-same-server-which-used-to-send-emails%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














You will have to look in your php.ini file, under [mail function]. Here, the path to the mail sending binary is specified. Whatever is specified here, the mail() function in PHP will use.



sendmail_path = /usr/sbin/sendmail -t -i


The above one should be the default. So, if you haven't changed anything, PHP will use sendmail.



As @JdeBP mentions, you can also take a quick look at the headers of the mails received. If you look under the various Received sections, you will find some identification of the server software being used.






share|improve this answer























  • Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
    – Ignacio Vazquez-Abrams
    Jun 17 '11 at 12:25










  • Oh, okay. Yeah, I'd trace down that one. Like your option though.
    – slhck
    Jun 17 '11 at 12:28










  • +1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
    – JdeBP
    Jun 18 '11 at 12:40










  • While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
    – JdeBP
    Jun 18 '11 at 12:50
















2














You will have to look in your php.ini file, under [mail function]. Here, the path to the mail sending binary is specified. Whatever is specified here, the mail() function in PHP will use.



sendmail_path = /usr/sbin/sendmail -t -i


The above one should be the default. So, if you haven't changed anything, PHP will use sendmail.



As @JdeBP mentions, you can also take a quick look at the headers of the mails received. If you look under the various Received sections, you will find some identification of the server software being used.






share|improve this answer























  • Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
    – Ignacio Vazquez-Abrams
    Jun 17 '11 at 12:25










  • Oh, okay. Yeah, I'd trace down that one. Like your option though.
    – slhck
    Jun 17 '11 at 12:28










  • +1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
    – JdeBP
    Jun 18 '11 at 12:40










  • While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
    – JdeBP
    Jun 18 '11 at 12:50














2












2








2






You will have to look in your php.ini file, under [mail function]. Here, the path to the mail sending binary is specified. Whatever is specified here, the mail() function in PHP will use.



sendmail_path = /usr/sbin/sendmail -t -i


The above one should be the default. So, if you haven't changed anything, PHP will use sendmail.



As @JdeBP mentions, you can also take a quick look at the headers of the mails received. If you look under the various Received sections, you will find some identification of the server software being used.






share|improve this answer














You will have to look in your php.ini file, under [mail function]. Here, the path to the mail sending binary is specified. Whatever is specified here, the mail() function in PHP will use.



sendmail_path = /usr/sbin/sendmail -t -i


The above one should be the default. So, if you haven't changed anything, PHP will use sendmail.



As @JdeBP mentions, you can also take a quick look at the headers of the mails received. If you look under the various Received sections, you will find some identification of the server software being used.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 20 '17 at 10:17









Community

1




1










answered Jun 17 '11 at 12:23









slhck

159k47440464




159k47440464












  • Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
    – Ignacio Vazquez-Abrams
    Jun 17 '11 at 12:25










  • Oh, okay. Yeah, I'd trace down that one. Like your option though.
    – slhck
    Jun 17 '11 at 12:28










  • +1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
    – JdeBP
    Jun 18 '11 at 12:40










  • While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
    – JdeBP
    Jun 18 '11 at 12:50


















  • Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
    – Ignacio Vazquez-Abrams
    Jun 17 '11 at 12:25










  • Oh, okay. Yeah, I'd trace down that one. Like your option though.
    – slhck
    Jun 17 '11 at 12:28










  • +1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
    – JdeBP
    Jun 18 '11 at 12:40










  • While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
    – JdeBP
    Jun 18 '11 at 12:50
















Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
– Ignacio Vazquez-Abrams
Jun 17 '11 at 12:25




Some systems have sendmail as a symlink to the actual binary provided by the MTA, e.g. sendmail.sendmail or sendmail.qmail.
– Ignacio Vazquez-Abrams
Jun 17 '11 at 12:25












Oh, okay. Yeah, I'd trace down that one. Like your option though.
– slhck
Jun 17 '11 at 12:28




Oh, okay. Yeah, I'd trace down that one. Like your option though.
– slhck
Jun 17 '11 at 12:28












+1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
– JdeBP
Jun 18 '11 at 12:40




+1. The suggestion in the PHP manual is to point sendmail_path directly at qmail_inject, which will be directly indicative with no further research. But in the general case finding out whose binary sendmail_path is pointing to is the right answer for PHP on Unix/Linux.
– JdeBP
Jun 18 '11 at 12:40












While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
– JdeBP
Jun 18 '11 at 12:50




While you're at it, you could mention in your answer that the Received: header fields in the received messages will yield very strong clues as to which software, Sendmail or qmail, processed the mail. Sendmail and qmail write trace information in different forms.
– JdeBP
Jun 18 '11 at 12:50


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f298494%2fsendmail-qmail-both-run-on-the-same-server-which-used-to-send-emails%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

Алькесар

Josef Freinademetz