cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail is not Starting

Bruno Vilardo
Regular Advisor

Sendmail is not Starting

Hello All,

Yesterday I tried to stop sendmail using
sendmail stop but it didn´t work.
Then i kill its process and i tried to start
using sendmail start but it doenst start.
I left this command running for an 1 hour and it didnt started.
Does anybody knows what this could be ?

Thanks

Bru
11 REPLIES
Michael Schulte zur Sur
Honored Contributor

Re: Sendmail is not Starting

Hi Bruno,

did you start sendmail with
/sbin/init.d/sendmail start
?

What is the output?

greetings,

Michael
Bruno Vilardo
Regular Advisor

Re: Sendmail is not Starting

Hey Michael,

Yes thats what i did.

But there is no output.
The cursor just blanks and blanks..
Any ideia ?

Thanks a lot

Bruno
Michael Schulte zur Sur
Honored Contributor

Re: Sendmail is not Starting

Hi,

please use
sh -x /sbin/init.d/sendmail start
and post the result

thanks,

Michael
Bruno Vilardo
Regular Advisor

Re: Sendmail is not Starting

Hey Michael

Here you are the output of that command:

PATH=/sbin:/usr/sbin:/usr/bin
+ export PATH
+ rcmgr get SENDMAIL_ARGS
ARGS=
ARGS=-om
SBIN=/usr/sbin
ALIAS_DIR=/var/adm/sendmail
MQUEUE=/var/spool/mqueue
PIDFILE=/var/run/sendmail.pid
TIMEOUT_QUEUERUN=5
CLEAN_MISC=2
CLEAN_DEAD=7
+ start_d
+ typeset vers
/sbin/init.d/sendmail: typeset: not found
+ who -r
+ set - . run-level 3 Mar 28 14:58 3 0 S
/sbin/init.d/sendmail: [[: not found
/sbin/init.d/sendmail: [[: not found
/sbin/init.d/sendmail: [[: not found
/sbin/init.d/sendmail: !: not found
SMTP Mail Service started.
Michael Schulte zur Sur
Honored Contributor

Re: Sendmail is not Starting

Bruno,

sorry, I wasn't aware, that sendmail script is run by ksh and not by sh.
Please repeat the try with ksh and post the result. I assume, you made no changes to the script, right?
Was your setup try successfull?

greetings,

Michael
Bruno Vilardo
Regular Advisor

Re: Sendmail is not Starting

here you go man ...


ksh -x /sbin/init.d/sendmail start
+ PATH=/sbin:/usr/sbin:/usr/bin
+ export PATH
+ + rcmgr get SENDMAIL_ARGS
ARGS=
+ ARGS=-om
+ SBIN=/usr/sbin
+ ALIAS_DIR=/var/adm/sendmail
+ MQUEUE=/var/spool/mqueue
+ PIDFILE=/var/run/sendmail.pid
+ TIMEOUT_QUEUERUN=5
+ CLEAN_MISC=2
+ CLEAN_DEAD=7
+ start_d
WARNING: Weak permissions on /usr/sbin/sendmail (chmod a-rw).
SMTP Mail Service started.
+ exit 0
Nicolas Dumeige
Esteemed Contributor

Re: Sendmail is not Starting

After SMTP Mail Service started :D
there is a "exit 0" on the output you posted.

Still, the shell won't give you the prompt after that ?
All different, all Unix
Michael Schulte zur Sur
Honored Contributor

Re: Sendmail is not Starting

Bruno,

you won't get back to the shell?
Please post ls -l /usr/sbin/sendmail
to see what the warning is about.

thanks,

Michael
Bruno Vilardo
Regular Advisor

Re: Sendmail is not Starting

Hey guys , sorry for the delay,

When i run ksh -x /sbin/init.d/sendmail start
after that i can get to prompt.
And i´ve check the sendmail process with
ps -ef |grep sendmail and the sendmail daemon is on :
root 18331 1 0.0 13:20:22 ?? 0:00.00 sendmail: accepting co
nnections on
root 27937 28378 0.0 15:47:04 ttypc 0:00.00 grep sendmail

Now i would like to know why couldnt i stop and then start the sendmail.

Michael here is the ls command :

-rwxr-x--- 1 bin bin 14249 May 14 2000 /sbin/init.d/sendmail

Thanks a lot everyone.

Bru
Michael Schulte zur Sur
Honored Contributor

Re: Sendmail is not Starting

Bruno,

I don't know, but whatever it was I hope it's gone. Please note my last post.
You have posted the wrong command.
When you use ' please use the vertical one, the other gets messed up. ;-)

thanks,

Michael
Bruno Vilardo
Regular Advisor

Re: Sendmail is not Starting

Alright Michael,

Thanks a lot my friend.

Appreciate

regards

Bruno