Sendmail is not starting anymore

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Sendmail is not starting anymore

Unread post by BerArt »

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?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You don't need sendmail on a Plesk box. Plesk uses qmail.
Lemonbit Internet Dedicated Server Management
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

I know but PHP uses sendmail (relay is off on Qmail) so the PHP scripts cannot send mail now...
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

So you have 2 SMTP servers running?
Lemonbit Internet Dedicated Server Management
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

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...
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

On a normal Plesk installation sendmail should not be running. It shouldn't even be installed.
Lemonbit Internet Dedicated Server Management
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Ok, Thx! :) one step further...
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Unread post by faris »

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.
--------------------------------
<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>
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

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:
# ll /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Nov 27 2007 /usr/sbin/sendmail -> /etc/alternatives/mta
And the alternatives system makes sure qmail's sendmail interface is used:
# ll /etc/alternatives/mta
lrwxrwxrwx 1 root root 23 May 9 00:55 /etc/alternatives/mta -> /var/qmail/bin/sendmail
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.
Lemonbit Internet Dedicated Server Management
Post Reply