Operating System - HP-UX
1826950 Members
3293 Online
109705 Solutions
New Discussion

Re: Sendmail daemon will not startup.

 
Juan Gonzalez_2
Frequent Advisor

Sendmail daemon will not startup.

When I try to start the sendmail daemon by doing /usr/sbin/sendmail start the message below gets ouput to the screen and the command hangs.

start... User unknown

I looked in /var/adm/syslog.mail.log and all that is in there after I run the sendmail start command is alias database /etc/mail/aliases.db out of date.
I have looked at the mail aliases file and nothing looks out of the ordinary as a matter of fact it is the same as some of my other servers. I am running HP-UX 11.23 on the server. There have been no new patches installed on this server since the last time I add a mail aliase to this file and restarted the sendmail daemon.
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: Sendmail daemon will not startup.

Change export SENDMAIL_SERVER = 1 in /etc/rc.config.d/mailservs

and then restart the sendmail from /sbin/init.d/sendmail start

-USA
Good Luck..
Doug O'Leary
Honored Contributor

Re: Sendmail daemon will not startup.

Hey;

>>/usr/sbin/sendmail start

/usr/sbin/sendmail is the actual binary/daemon, not the start script. If you wanted to send someone an email, you could:

/usr/sbin/sendmail dkoleary@olearycomputers.com << eof
Subject: testing
this is a test of the emergency broadcasting system.
eof

If you want to start the daemon, update /etc/rc.config.d/mailservs; ensure SENDMAIL_SERVER=1, then run

/sbin/init.d/sendmail start

(not /usr/sbin)

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Juan Gonzalez_2
Frequent Advisor

Re: Sendmail daemon will not startup.

Uday it is already set see below.

export SENDMAIL_SERVER=1
Doug O'Leary
Honored Contributor

Re: Sendmail daemon will not startup.

Addednum:

In addition to starting sendmail via /sbin/init.d/sendmail vs /usr/sbin/sendmail, you can update the aliases datbase by running /usr/sbin/newaliases. You don't have to actually stop/restart sendmail although that would definitely do it.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Juan Gonzalez_2
Frequent Advisor

Re: Sendmail daemon will not startup.

Thanks every one but I found out the problem was.