On one of our servers (CentOS5/Plesk8.4/ASL2/Sendmail 8.13.8-2.el5) senmail is not starting anymore after the last update to ASL 2.0 this is the message I receive when trying to start Sendmail:
Failed to start sendmail :
Starting sendmail: sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]
[FAILED]
Starting sm-client: sendmail: illegal option -- L
sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]
[FAILED]
Does someone know what is going wrong, or how to find out what is going wrong?
Sendmail is not starting anymore
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
You don't need sendmail on a Plesk box. Plesk uses qmail.
Lemonbit Internet Dedicated Server Management
I am not sure what you mean, this server is form a customer that is trying to send mail via a php scripts and this is not working,
<?php// Your email address$email = "you@example.com";// The subject$subject = "Enter your subject here";// The message$message = "Enter your message here";mail($email, $subject, $message, "From: $email");echo "The email has been sent.";?>
He thought that it had something to do with Sendmail because Qmail is running fine, but Sendmail is not running at the moment. If I read your reaction, sendmail should not be running? I am a bit lost now…
And it all worked before according to my customer...
<?php// Your email address$email = "you@example.com";// The subject$subject = "Enter your subject here";// The message$message = "Enter your message here";mail($email, $subject, $message, "From: $email");echo "The email has been sent.";?>
He thought that it had something to do with Sendmail because Qmail is running fine, but Sendmail is not running at the moment. If I read your reaction, sendmail should not be running? I am a bit lost now…
And it all worked before according to my customer...
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
On a normal Plesk installation sendmail should not be running. It shouldn't even be installed.
Lemonbit Internet Dedicated Server Management
There's a bit more to it.
I'm afraid I don't have the details to hand, but what should happen when Plesk is installed is that sendmail (the binary - the program) get disabled and then a symbolic (soft) link gets placed somewhere linking to a special file in the /var/qmail directory somewhere.
Then, when a PHP (or other) script wants to use sendmail, it works just as it would if sendmail itself was still there and running. You still point scripts to sendmail but qmail sort of "fakes" it.
People who know this stuff off by heart will be cringing at my poor explanation but that's basically the way it works anyway
Faris.
I'm afraid I don't have the details to hand, but what should happen when Plesk is installed is that sendmail (the binary - the program) get disabled and then a symbolic (soft) link gets placed somewhere linking to a special file in the /var/qmail directory somewhere.
Then, when a PHP (or other) script wants to use sendmail, it works just as it would if sendmail itself was still there and running. You still point scripts to sendmail but qmail sort of "fakes" it.
People who know this stuff off by heart will be cringing at my poor explanation but that's basically the way it works anyway

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
I believe all MTA's (qmail, postfix, etc.) provide this kind of sendmail interface.
It works like this: /usr/sbin/sendmail is a symlink to /etc/alternatives/mta:
It works like this: /usr/sbin/sendmail is a symlink to /etc/alternatives/mta:
And the alternatives system makes sure qmail's sendmail interface is used:# ll /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Nov 27 2007 /usr/sbin/sendmail -> /etc/alternatives/mta
So, you don't need to have the sendmail *package* installed in order to be able to use /usr/sbin/sendmail, you just need an MTA that provides a sendmail interface.# ll /etc/alternatives/mta
lrwxrwxrwx 1 root root 23 May 9 00:55 /etc/alternatives/mta -> /var/qmail/bin/sendmail
Lemonbit Internet Dedicated Server Management